/* Footer */

.footer {
  padding: 20px;
  font-size: 0.9rem;
  color: #6c757d;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-links li {
  display: inline;
}

.footer-links a {
  text-decoration: none;
  color: #007bff;
}

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

.quarto-listing-category {
  font-size: 0.1em; /* Makes the text smaller for default categories */
}


/* Navbar adjustments */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px; /* Add padding around the navbar */
  font-size: 1.15rem; /* Adjust text size */
}

.navbar-logo {
  border-radius: 50%; /* Crop the logo into a circle */
  object-fit: cover; /* Ensure the image scales properly within the circle */
  display: block; /* Prevent inline elements from affecting dimensions */
  max-height: 50px;
  transition: transform 0.3s ease; /* Smooth transition for hover effect */
  margin-left: 5px;
}

.navbar-logo:hover {
  transform: scale(1.05); /* Pop-up effect on hover */
}

/* Try to make this only apply to the navbar tools and not all dropdowns from the navbar */
.quarto-navbar-tools .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

.dropdown-menu .dropdown-item {
  color: #000; /* Set text color to black or any visible color */
}


/* TOC adjustments */

nav#TOC {
  margin-bottom: 60px; /* Add margin below the table of contents */
}




/* hero image/home page banner formatting */

.hero-image-container {
  width: 100vw;
  height: 300px;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  margin-bottom: 20px; /* Adds 20px buffer below the image */
}

.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Ensure the image is hidden on mobile devices */
@media (max-width: 767.98px) {
  .hero-image-container {
    display: none !important;
  }
}


/* Home page recent posts css */

.recent-post-item {
  line-height: 1.5;
}

.recent-post-link {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.2s ease;
}

.recent-post-link:hover {
  color: #3498db;
  text-decoration: underline;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .recent-post-link {
    color: #e8e8e8;
  }
  
  .recent-post-link:hover {
    color: #5dade2;
  }
}

/* Center text class */
.center-text {
  text-align: center !important;
}






/* Fun projects page design */

.project-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;

  display: flex;
  flex-direction: column;
  height: 500px; /* Increased fixed card height to accommodate tags */
  max-width: 100%;
  word-wrap: break-word; /* Ensure long words break properly */
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  width: 100%;
  height: 180px; /* Consistent image height */
  object-fit: cover;
  display: block;
}

.project-content {
  flex: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
  position: relative; /* For better positioning control */
  height: calc(100% - 180px); /* Total card height minus image height */
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-height: 1.7rem; /* Ensure consistent height for title */

  position: relative; /* Create a stacking context for the tooltip */
}

.project-title a {
  text-decoration: none; /* Ensure no underline by default */
  position: relative;
}

.project-title a:hover {
  text-decoration: underline; /* Optional: underline on hover */
}

.project-description {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 0rem;
  margin-top: 0.2rem; /* Consistent spacing from title */

  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limit to 5 lines */
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  /* Optional: Ensure box-sizing doesn't break the line clamp unexpectedly */
  box-sizing: border-box;

  max-height: calc(1.4em * 5);
}

.project-description a {
  color: grey;
  text-decoration: none;
}

.project-description a:hover {
  text-decoration: underline; /* Optional: underline on hover */
}

.project-tags {
  margin-top: auto; /* Push tags to bottom */
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem; /* Vertical gap 0.3rem, horizontal gap 0.5rem */
  overflow: visible; /* Changed from hidden to visible */
  padding-top: 0.5rem; /* Consistent top padding */
  min-height: 45px; /* Ensure minimum height for tag visibility */
}

.project-tag-prefix {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-right: 0.4rem;
  display: block; /* Make it a block to ensure it's on its own line */
  margin-bottom: 0.3rem; /* Space between prefix and tags */
  width: 100%; /* Full width to ensure it's on its own line */
}

.project-tag {
  background-color: #f0f0f0;
  color: #333;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Responsive adjustments for project cards */
@media (max-width: 991px) {
  .project-card {
    height: 450px; /* Slightly taller on medium screens */
  }
  
}

@media (max-width: 767px) {
  .project-card {
    height: 470px; /* Even taller on small screens */
  }
  
  .project-title {
    min-height: 2rem; /* More space for title on mobile */
  }

}



/* Adjust the sidebar navigation size */

.sidebar-navigation {
  padding-left: 0px;
}