/* Importing fonts if needed (or use the <link> in HTML head) */

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

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
}

/* Subheading (handwritten) style example */
h2.section-title {
  font-family: 'Shadows Into Light', cursive; 
  font-size: 2rem;
  color: #4e9317; /* or whichever brand color you prefer */
  margin-bottom: 1rem;
  text-align: center;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f7fa;/*#F8B42C;*/
  padding: 1rem 2rem;
}

.logo {
  max-height: 60px; /* Adjust as needed */
}

/* Navigation 
.site-nav ul {
  display: flex;
  list-style: none;
}*/
.site-nav ul {
  display: none; /* hidden by default on mobile */
}

.site-nav ul.nav-open {
  display: block; /* or use flex, grid, etc. */
}


.site-nav a {
  color: #000;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.site-nav a.active,
.site-nav a:hover {
  text-decoration: underline;
}
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none;
  /* styling, background, etc. */
}

/* Hero Section */
.hero {
  background: linear-gradient(
    rgba(0,0,0,0.4), 
    rgba(0,0,0,0.4)
  ), url('../images/building_health_sciences.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

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

.hero-text h2 {
  font-family: 'Shadows Into Light', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

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


.hero-text {
  max-width: 700px;
  margin: 0 auto;
}



/* Call to Action Button */
.cta-button {
  background-color: #4e9317;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #3a7513;
}

.collaborate {
  padding: 3rem 1rem;
  text-align: center;
}

.collaborate .cta-button {
  margin-top: 1.5rem; /* provides space from content above */
  display: inline-block;
}

/* Intro Section */
.intro {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro p {
  margin-top: 1rem;
  line-height: 1.6;
}

/* Partners Section */
.partners {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.partner-logos img {
  max-height: 80px;
  object-fit: contain;
}



/* Page Banner */
.page-banner {
  background-color: #3e95dd; /* or use a background image */
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.page-banner .banner-content {
  max-width: 800px;
  margin: 0 auto;
}
.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.page-banner p {
  font-size: 1.2rem;
}

/* Main content sections */
.main-content {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Director cards */
.director-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.director-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.director-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.director-role {
  font-weight: 600;
  color: #8360a9;/*#4e9317*/
  margin: 0.5rem 0;
}

/* Affiliations / logos */
.affiliations .affiliation-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}
.affiliation-logos img {
  max-height: 80px;
  object-fit: contain;
}

.blog-post {
  background: #fff;
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-post-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
}
.seminar-card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin: 2rem 0;
}

.seminar-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #4e9317; /* brand color */
}

.dark-mode {
  background-color: #222;
  color: #eee;
}

.dark-mode .site-header {
  background-color: #333;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger, .hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.3s ease;
}

.site-nav ul {
  display: flex; /* default desktop view */
  list-style: none;
}

.site-nav ul.nav-open {
  display: block; /* for mobile view toggling */
}

.site-nav a {
  color: #000;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.site-nav a.active,
.site-nav a:hover {
  text-decoration: underline;
}

/* Scroll-to-top button styling */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #4e9317;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  cursor: pointer;
  display: none; /* initially hidden */
}


.healthy-buildings {
  padding: 3rem 1rem;
  background-color: #f5f7fa;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(78,147,23,0.2);
}

.feature-card h3 {
  color: #8360a9;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .site-nav ul {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    background-color: #ffca29;
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .site-nav ul.nav-open {
    display: flex;
  }

  .site-nav ul li {
    margin: 1rem 0;
  }
}

.blob-bg {
  background-image: url('assets/images/purple_blob.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.section-divider {
  display: block;
  margin: 2rem auto;
  width: 80%;
  max-width: 600px;
  opacity: 0.5;
}

.illustration {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
}
.card, .btn {
  border-radius: 15px; /* soft and friendly */
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

/* Footer */
.site-footer {
  background-color: #808184;
  color: #fff;
  padding: 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-contact a {
  color: #ffca29;
  text-decoration: underline;
}

.footer-logo {
  max-height: 45px;
  width: auto;
  margin-bottom: 1rem;
}


.footer-logo-uni {
  max-height: 45px;
  margin: 0.5rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.custom-shape-divider-top-1741302920 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider-top-1741302920 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 150px;
}

.custom-shape-divider-top-1741302920 .shape-fill {
  fill: #F8B42C;
}

.footer-logo {
  filter: brightness(0) invert(1); /* makes logo white if it's dark */
  opacity: 0.9;
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}