/* FONT */

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

:root {
  --primary: #176b87;
  --dark: #12313b;
  --light: #eef8fa;
  --header-height: 10dvh;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dark);
  background: white;
}

header {
  background: lightgray;
  border-bottom: 1px solid var(--light);
  position: fixed;
  top: 0;
  z-index: 10;
  height: var(--header-height)
}

/* Base & Desktop Layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: lightgray;
  padding: 1rem 2rem;
  position: relative;
}

.icon {
  width: 20%;
}

.fa-10x{
  font-size: 2rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links a {
  color: #712119 !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Desktop Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--light);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 150px;
}

.dropdown-menu a {
  padding: 0.5rem 1rem;
}

.dropdown-menu a:hover {
  background: #444;
}

/* --- Arrow Smooth Rotation Styles --- */
.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  /* Animate the flip */
}

/* Active States applied by JS */
.dropdown-menu.show {
  display: block;
}

.dropdown-toggle.active .arrow {
  transform: rotate(180deg);
  /* Flip upside down */
}

/* Mobile Responsive Rules */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .icon{
    width: 50%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    padding: 1rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem 2rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Stack dropdowns inline on mobile */
  .dropdown-menu {
    position: static;
    background: #111;
    padding-left: 1rem;
    min-width: 100%;
  }
}

/* .hero {
  background: linear-gradient(120deg, #e6f6f8, #fff);
  padding: 6rem 1.25rem;
}
.hero-content,
.section {
  max-width: 1100px;
  margin: auto;
}
.hero h1 {
  max-width: 650px;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero p {
  max-width: 600px;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 5px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.section {
  padding: 4rem 1.25rem;
}
.section h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  padding: 1.5rem;
  border: 1px solid #dcecef;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 15px #12313b0d;
}
.card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.about {
  background: var(--light);
  text-align: center;
}
footer {
  padding: 1.5rem;
  background: var(--dark);
  color: white;
  text-align: center; 
}*/





h1,
h2,
h3 {
  font-weight: 700;
}

#about p {
  font-weight: 400;
  color: #555555;
  word-break: keep-all;
  overflow-wrap: break-word;
  width: 100dvh;
}


footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-color: #712119;
  color: #EDEDF5;
  width: 100%;
  min-height: 5dvh;
}

a {
  color: #EDEDF5;
  text-decoration: none;
}

li a {
  color: #712119;
  text-decoration: underline;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.container img {
  height: 80px !important;
  /* Increase size */
  width: auto !important;
  /* Keep aspect ratio */
  max-height: none !important;
  /* Override Bootstrap constraints */
}

hr {
  width: 100%;
  border: 1px solid #712119;
}

/* 
.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 17px;    
  border: none;
  outline: none;
  color: white;
  padding: 14px 0px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.nav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.active {
  background-color: #04AA6D;
  color: white;
}  */

/* Title image */
.logo {
  background-image: url("title_image-2.png");
  background-size: cover;
  /* Cover the entire div */
  background-position: center;
  /* Center the image */
  background-repeat: no-repeat;
  /* Prevent repetition */

  position: relative;
  top: -20vh;
  left: 0;
  width: 100vw;
  /* Full width of the viewport */
  height: 80vh;
  /* Adjust height as needed */
  clip-path: inset(20vh 0px 0px 0px);
  /* Crops 20% from the top */

  margin: 0;
  padding: 0;

  margin-bottom: -200px;
  /* Adjust this value to reduce space below the image */
}

/* Default: Center all elements */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center vertically */
  align-items: center;
  /* Center horizontally */
  text-align: center;
  /* Ensure text is centered */
  margin-top: var(--header-height);
  flex: 1;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center vertically */
  align-items: center;
  /* Center horizontally */
  width: 100%;
  /* Ensure sections take full width */
  padding: 20px;
  /* Add some padding */
  box-sizing: border-box;
  /* Include padding in width */
   scroll-margin-top: 12dvh;
}

section::before{
  display: block; 
  content: " "; 
  margin-top: -285px; 
  height: 285px; 
  visibility: hidden; 
  pointer-events: none;
}

#about p {
  width: 100%;
}

/* Title block banner */



/* Personal research tags */
.person-tags {
  margin-top: 10px;
}

.person-tags .tag {
  display: inline-block;
  background: #a37371;
  border-radius: 4px;
  padding: 4px 10px;
  margin: 4px 6px 4px 0;
  font-size: 0.85rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease-in-out;
}

.person-tags .tag:hover {
  background: #c47d80;
  color: #fff;
}

/* Timeline */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  padding-left: 20px;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.timeline-date {
  flex: 1;
  font-weight: bold;
  color: #712119;
  font-size: 18px;
}

.timeline-content {
  flex: 2;
  background: #EDEDF5;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-content h3 {
  margin: 0;
  color: black;
  font-size: 20px;
}

.timeline-content p {
  color: black;
  font-size: 18px;
}

.timeline-item::before {
  position: absolute;
  left: -10px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: #712119;
  border-radius: 50%;
}


.cv-toggle {
  cursor: pointer;
  font-size: 20px;
  margin-left: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
  /* Prevents weird spacing issues */
}

.cv-toggle[aria-expanded="true"]::before {
  content: "▼";
  /* Downward when expanded */
}

.cv-toggle[aria-expanded="false"]::before,
.cv-toggle:not([aria-expanded])::before {
  content: "▶";
  /* Right when collapsed */
}

/* Profile Container */
.profile-container {
  display: flex;
  align-items: flex-start;
  /* Align items at the top */
  gap: 30px;
  /* Space between image and text */
  max-width: 800px;
  margin: 0 auto;
  /* Centering the block */
}

/* Ensure image + social icons stay on one side */
.profile-image-container {
  flex: 0 0 300px;
  /* Fixed width */
  text-align: center;
  border-radius: 50%;
}

/* Profile Image */
.profile-image {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  display: block;
  margin-bottom: 10px;
  margin-top: 50px;
}

/* Bio Content */
.bio-content {
  flex: 1;
  /* Takes up remaining space */
  text-align: justify;
}

/* Responsive Design for small screens */
@media (max-width: 700px) {

  /* Adjusted breakpoint */
  .profile-container {
    flex-direction: column;
    align-items: center;
    /* Center everything */
    text-align: center;
  }

  .bio-content {
    text-align: left;
    width: 100%;
    /* Use full width */
  }
}

/* Override for full-width sections like Research */
.full-width main {
  justify-content: flex-start;
  /* Allow normal positioning */
  align-items: stretch;
  /* Allow full width */
  text-align: left;
  /* Ensure text aligns properly */
}


/* -- Ensure the research section spans full width -- */
.full-width {
  width: 90dvw;
  /* Full viewport width */
  margin: 0 0;
  padding: 40px 0;
  position: relative;
  left: 0;
}

/* -- Row to arrange elements properly -- */
.research-row {
  display: flex;
  flex-wrap: wrap;
  /* Allow items to wrap */
  justify-content: space-evenly;
  /* Spread items evenly */
  width: 100%;
  /* Ensure full width */
  max-width: 100vw;
  /* Prevent unintentional shrinking */
}

/* -- Research blocks evenly distributed -- */
.research-feature {
  background: #EDEDF5;
  border-radius: 26px;
  padding: 50px;
  text-align: center;
  flex: 1 1 calc(33.333% - 40px);
  /* Three per row on large screens */
  margin: 20px;
  /* Spacing between items */
  min-width: 300px;
  /* Prevent shrinking too much */
}

.research-image {
  width: 100%;
  /* Make the image take full width */
  height: 200px;
  /* Adjust as needed */
  object-fit: cover;
  /* Ensures the image covers the whole area */
  border-radius: 26px;
  /* Match parent border radius */
  transition: transform 0.3s ease-in-out;
  display: block;
}

.research-image:hover {
  transform: scale(1.1);
  /* Slight zoom effect */
}

/* -- Responsive adjustments -- */
@media (max-width: 992px) {
  .research-feature {
    flex: 1 1 calc(50% - 40px);
    /* Two per row on medium screens */
  }
}

@media (max-width: 768px) {
  .research-feature {
    flex: 1 1 100%;
    /* One per row on small screens */
  }
}

figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center the figure */
  margin: 0;
  /* Remove default margins */
  padding: 0;
  /* Remove default padding */
}

figure img {
  width: 100%;
  /* Ensure figure takes full width */
  margin: 0;
  /* Remove default margins */
  padding: 0;
  /* Remove default padding */
  text-align: center;
  /* Center the figure content */
}

/* Team Section */
.team-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.team-member {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 200px;
}

.team-member img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.team-member img:hover {
  transform: scale(1.1);
}

.team-member h3 {
  font-size: 1.2rem;
  margin: 10px 0 5px;
}

.team-member p {
  color: gray;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.social-icons a {
  display: inline-flex;
  width: 35px;
  height: 35px;
  background-color: black;
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
}

.social-icons a:hover {
  background-color: #712119;
}


/* Grid layout for publications */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}


/* Individual publication card */
.publication-card {
  background: #EDEDF5;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out;
  font-size: 18px;
  cursor: pointer;
  /* Show pointer on hover */
}

/* Wrap the card in an <a> to make it clickable */
.publication-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  /* Keep inherited text colour */
  height: 100%;
  width: 100%;
}

/* Heading inside card */
.publication-card h3 {
  font-size: 20px;
  font-weight: bold;
}

/* Paragraph inside card */
.publication-card p {
  font-size: 18px;
}

/* Hover effect */
.publication-card:hover {
  transform: scale(1.01);
}


/* Contact Section Styling */
.contact-container {
  margin: 30px auto;
  padding: 20px;
  background: #f9f9f9;
  border-left: 5px solid #712119;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
}

.contact-container a {
  color: #712119;
  font-weight: bold;
  text-decoration: none;
}

.contact-container a:hover {
  text-decoration: underline;
}

.contact-container i {
  color: #712119;
  margin-right: 5px;
}

/* 
@media screen and (max-width: 600px) {
  .nav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .nav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .nav.responsive {position: relative;}
  .nav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .nav.responsive .dropdown {float: none;}
  .nav.responsive .dropdown-content {position: relative;}
  .nav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
} */