/* css styles */


.dropdown-text {
  color: #1E3A8A;
  font-size: 14pt;
  font-weight: bold;
}


/* Ensure the navbar menus appear on hover */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  color: #fff;
  background-color: #ffffffe6;
  color: rgba(171, 98, 72, 1);
}



/* Navbar container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%; /* Default padding */
  background-color: #ffffff; /* Background color to match your theme */
}



/* Increase logo left padding for larger screens */
@media (min-width: 1500px) {
  .navbar {
    padding: 0 0%;
  }
  .navbar-brand {
    padding-left: 200px;
  }
}

.navbar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;  /* ensures it never wraps to multiple lines */
}

.navbar-brand img {
  max-height: 110px;     /* or whatever fits nicely */
  height: auto;         /* ensures proportional scaling */
  width: auto;
}


/* Prevent line breaks for the GitHub menu item */
.navbar-nav > li:nth-last-child(3) {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Ensure the icon and text stay together */
.navbar-nav > li:nth-last-child(3) .nav-link {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Navbar background color */
.navbar {
  background-color: #ffffff;
}

/* Homepage banner */
.banner {
  background-color: #122D4D; /* Blue color */
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  max-width: 900px; /* Adjust the maximum width as needed */
  margin: 0 auto; /* Center the banner */
  border-radius: 0px; /* Optional: Add rounded corners */
}

/* Custom navbar styling */
.navbar-nav {
  padding-left: 20px;
  padding-right: 0px;
}

.navbar-nav .nav-link {
  color: #1E3A8A;
}

.navbar-nav .nav-link:hover {
  color: rgba(171, 98, 72, 1);
  text-decoration: underline;
}

@media (max-width: 1280px) {
  /* Show the hamburger on smaller screens */
  .navbar-toggler {
    display: inline-block !important;
  }

  /* 
   Hide the nav items ONLY when the navbar is collapsed 
   (i.e., no .show class on the .navbar-collapse).
  */
  .navbar-collapse:not(.show) .navbar-nav {
    display: none !important;
  }
  
  /* 
   Let the nav items appear when .navbar-collapse has .show 
   (i.e., the user clicked the hamburger).
  */
  .navbar-collapse.show .navbar-nav {
    display: block !important;
  }

  .navbar-collapse {
    position: absolute;
    top: 80px;         /* or however tall your .navbar is */
    left: 0;
    width: 50%;       /* or less if you want a narrower drawer */
    background-color: #fff; 
    display: none !important;
  }
  .navbar-collapse.show {
    display: block !important;
  }

  .navbar-brand {
    padding-right: 800px;
  }

}


/* Navbar link styling */
.navbar .nav-link {
  font-size: 14pt;
  font-weight: bold;
}


/* CSS styles for the "To the top" button */
#to-top-button {
  background-color: #ffffff00;
  color: #828282;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  display: inline-block; /* Inline within the footer */
}

#to-top-button:hover {
  text-decoration: underline;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Centering the footer content */
  margin: 0 auto;
  padding: 20px; /* Padding to prevent content from touching edges */
}

/* Custom navbar styling */
footer.footer .nav-footer {
  padding-left: 10px;
  padding-right: 10px;
}

/* Apply padding-left only for wider screens */
@media (min-width: 1200px) {
  .footer.footer .nav-footer {
    padding-left: 160px;
    padding-right: 160px;
  }
}

.txtcentered h3 {
  text-align: center;
}

.submit-button-container {
  text-align: center;
  margin-top: 20px;
}

.submit-button {
  display: inline-block;
  background-color: #3F6ADC; /* Change to your desired color */
  color: white;
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  font-size: 14pt;
  font-weight: bold;
  border-radius: 5px;
}

.submit-button:hover {
  background-color: rgba(171, 98, 72, 1); /* Change to your desired hover color */
  color: white;
  text-decoration: underline;
}

/* Divider styling */
.horizontal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0; /* Adjust the vertical spacing as needed */
}

.horizontal-divider hr {
  flex: 1;
  border: 0;
  height: 1px;
  background: #959595; /* Line color */
  background-image: linear-gradient(to right, #898989, #5b5b5b, #898989); /* Gradient effect */
  margin: 0 10px; /* Space around the slashes */
}

.horizontal-divider span {
  font-size: 0.9em; /* Adjust size as needed */
  color: #989898; /* Color of the slashes */
}

.darkblue-button-container {
  text-align: center;
  margin-top: 20px;
}

.darkblue-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1A3155; /* Change to your desired color */
  color: white;
  width: 100%;
  height: 60px; /* Predefined size for all buttons */
  text-align: center;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  border-radius: 0px;
  padding: 40px 20px; /* Increase padding on all sides */
  box-sizing: border-box;
  line-height: 1.2;
}

.darkblue-button:hover {
  background-color: rgba(171, 98, 72, 1); /* Change to your desired hover color */
  color: white;
  text-decoration: underline;
}

.navbar #quarto-search.type-overlay .aa-Autocomplete {
  width: 120px;
}

.navbar .aa-DetachedSearchButton .aa-DetachedSearchButtonIcon {
  font-size: medium;
  border: 2px solid #b9b4b4;
  border-radius: 5px;
  display: flex;
  flex: 1 1 auto;
  padding: 5px;
}

body.quarto-light .navbar .aa-DetachedSearchButton .aa-DetachedSearchButtonIcon {
  color: #838689;
  border: 2px solid #ccc6c6;
}

body.quarto-dark .navbar .aa-DetachedSearchButton .aa-DetachedSearchButtonIcon {
  color: #d9e3eb;
  border: 2px solid #b9b4b4;
}

.aa-DetachedSearchButtonIcon::after {
  margin-left: 10px;
  content: " press /  ";
}

h1 h2 h3 h4 h5 h6 {
  text-shadow: none;
}


/* listing */
/* Container should center its children */
.quarto-layout-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Adjust as needed */
}


/* Centering the people cards */
.quarto-listing-container-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px auto; /* Centering with margin auto */
  text-align: center; /* Centering text */
}

.people-listing-image {
  border-radius: 50%;
  justify-self: center;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-self: center;
  align-content: center;
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 10px;
}




.person-darkblue-button-container {
  text-align: center;
  margin-top: 20px;
}

.person-darkblue-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1A3155; /* Change to your desired color */
  color: white;
  width: 220px;
  height: 80px; /* Predefined size for all buttons */
  text-align: center;
  text-decoration: none;
  font-size: 12pt;
  font-weight: bold;
  border-radius: 0px;
  padding: 20px 20px; /* Increase padding on all sides */
  box-sizing: border-box;
  line-height: 1.2;
}

.person-darkblue-button:hover {
  background-color: rgba(171, 98, 72, 1); /* Change to your desired hover color */
  color: white;
  text-decoration: underline;
}

.people-listing-board {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap onto the next line */
  justify-content: center; /* Center all items horizontally */
  gap: 2rem; /* Add consistent spacing between items */
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
}

.people-listing-item-board {
  display: flex;
  flex-direction: column; /* Stack image and text vertically */
  align-items: center; /* Center-align content */
  text-align: center; /* Center-align text */
  flex: 0 1 calc(33.333% - 2rem); /* Ensure no more than 3 items per row */
  box-sizing: border-box; /* Include padding and border in width */
}

.people-listing-editorial {
  padding: 0;
  margin: 0;
  list-style-type: none; /* Optional: Remove default list styling */
  display: block;
  flex-wrap: wrap
}

.people-listing-item-editorial {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items horizontally */
  margin: 0; /* Ensure no extra margin */
  padding: 20px; /* Ensure no extra padding */
}


.people-listing-previous-editorial {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap onto the next line */
  justify-content: center; /* Center all items horizontally */
  gap: 2rem; /* Add consistent spacing between items */
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
}

.people-listing-item-previous-editorial {
  display: flex;
  flex-direction: column; /* Stack image and text vertically */
  align-items: center; /* Center-align content */
  text-align: center; /* Center-align text */
  flex: 0 1 calc(33.333% - 2rem); /* Ensure no more than 3 items per row */
  box-sizing: border-box; /* Include padding and border in width */
}

.title {
  text-align: center;
}


.quarto-grid-item p.card-img-top>img {
  object-fit: contain;
}

.thumbnail-image.card-img {
  height: 300px !important; /* Change this to your desired height */
}
/* Main grid layout for people-listing */
.people-listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

.people-listing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}


.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
}

.card-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Circular image */
  object-fit: cover;
  margin-bottom: 10px;
}

.card-content {
  text-align: center;
  width: 100%;
}

/* Center the title and affiliation text */
.listing-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Make the affiliation and position text smaller */
.listing-affiliation-institution {
  font-size: 0.9em; /* Adjust to a smaller font size */
  color: #555;
  margin: 0;
}

/* Responsive layout adjustment for larger screens */
@media (min-width: 992px) {
  .people-listing {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on larger screens */
    justify-content: center; /* Center content even on larger screens */
  }
}

/* 1 column for smaller screens (mobile) */
@media (max-width: 767px) {
  .people-listing {
    grid-template-columns: 1fr; /* 1 column on smaller screens */
  }
}

/* Default styles for larger screens */
.quarto-listing-filter {
  width: 600px;
}

/* Style for the search input */
.quarto-listing-filter .search.form-control {
  display: inline-block;
  width: calc(100% - 40px); /* Adjust based on the icon size */
}

.quarto-listing-filter .input-group-text {
  display: inline-block;
  width: 40px;
}


/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .quarto-listing-filter {
    width: 320px; /* Adjust width for smaller screens */
    display: flex;
    flex-direction: column; /* Stack the input and icon vertically */
  }

  /* Make sure the input and icon are aligned properly */
  .quarto-listing-filter .search.form-control {
    width: 100%;
    margin-bottom: 10px; /* Add some space below the input */
  }

  .quarto-listing-filter .input-group-text {
    width: 100%;
    justify-content: center; /* Center the icon */
  }
}

/* Person Name (Title) */
.person-title {
  font-size: 1.5em; /* Larger font for name */
  font-weight: bold; /* Make the name bold */
  color: #003366; /* Darker blue color */
  margin-bottom: 5px; /* Add spacing below the name */
}

/* Position */
.person-position {
  font-size: 1.1em; /* Adjust to a normal size */
  font-style: normal; /* No italic */
  color: #000; /* Black color for position */
  margin-bottom: 10px; /* Spacing between position and affiliation */
}

/* Affiliation (Institution) */
.person-affiliation a {
  font-size: 1em; /* Slightly smaller font */
  color: #003366; /* Blue color for links */
  text-decoration: underline; /* Underlined to indicate it's a link */
}

.person-affiliation a:hover {
  color: #002244; /* Slightly darker blue on hover */
}

/* Interests */
.person-interests {
  font-size: 0.9em; /* Smaller font size for interests */
  margin-top: 10px; /* Spacing above the interests section */
  color: #333; /* Dark grey color for the interest text */
}

.person-interest {
  font-size: 0.9em;
  color: #555; /* Slightly lighter grey for each interest */
}

/* Adjust the color for all links in the people listing */
.list.people-listing a {
  color: #1e3a8a; /* Change this color as needed */
  text-decoration: none;
}

/* Add hover effect */
.list.people-listing a:hover {
  text-decoration: underline;
}

/* Global link styling */
a {
  color: #1e3a8a; /* This is the color you have set on the page */
  text-decoration: none;
  text-decoration: underline;
}

/* Optional: Add hover and active states */
a:hover, a:active {
  color: #1e3a8a; /* Keep the same color on hover or active */
  text-decoration: underline; /* Add underline on hover for better accessibility */
}

.input-group-sm.quarto-listing-filter {
  display: flex;
  align-items: center; /* Aligns the search icon and input field vertically */
  gap: 0; /* Removes any gap between the elements */
  padding: 0;
  margin: 0;
}

.input-group-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0.5rem; /* Adjust the padding to fit your design */
  margin: 0;
}

.input-with-clear-button {
  display: flex;
  flex: 1;
  align-items: center;
}

.search.form-control {
  width: 100%;
  height: 40px; /* Set the height of the input field */
  border: 1px solid #ddd; /* Add border to match search icon */
  border-left: none; /* Remove left border to merge with icon */
  border-radius: 0 4px 4px 0; /* Match rounded corners */
}

.clear-filter-icon {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #dc3545;
}

/* Adjusting the clear icon for mobile view */
@media (max-width: 768px) {
  .clear-filter-icon {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ff6b6b; /* Custom color for the 'X' icon */
    font-size: 20px;
  }

  .input-with-clear-button {
    position: relative;
  }

  .search.form-control {
    padding-right: 30px; /* Make sure there is enough space for the 'X' icon */
  }
}

.listing-actions-group {
  display: flex;
  margin-bottom: 50px;
}
