/* Global page and element settings ----------------------------------------------------- */
body {
  font-size: 16px;
  font-family: "Open Sans", Arial, sans-serif;
  background: #FFFFFF;
}

/* Colors */
.dark-blue {
  color: #292f36 !important;
}

#badge-more {
  background-color: #1585cf;
  color: white;
  cursor: pointer;
}

/* Font style */
.montserrat {
  font-family: "Montserrat", Helvetica, sans-serif !important;
}

/* Degree area -------------------------------------------------------------------- */
#education {
  list-style-type: none;
  padding-left: 0;
}

#education li {
  margin-bottom: 1rem;
}

.university {
  color: rgb(3, 3, 3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Helvetica, sans-serif;
  color: #20364c;
  font-weight: 500;
}

h1 {
  margin-bottom: 4rem;
}

h2, h3 {
  margin: 0 0 2rem !important;
  color: slategray;
}

h4 {
  text-transform: uppercase;
}

h4, h5, h6 {
  color: slategray !important;
}

.page-justified,
.page-justified h1,
.page-justified h2,
.page-justified h3,
.page-justified h4,
.page-justified h5,
.page-justified h6,
.page-justified p,
.page-justified table,
.page-justified tr,
.page-justified td,
.page-justified ul,
.page-justified li,
.page-justified blockquote,
.page-justified a,
.page-justified footer,
.page-justified dl,
.page-justified dt,
.page-justified dd,
.page-justified span,
.page-justified div {
  font-family: "Times New Roman", Times, serif !important;
}

.page-justified #main-container,
.page-justified #main-container p,
.page-justified #main-container li,
.page-justified #main-container td,
.page-justified #main-container th,
.page-justified #main-container blockquote,
.page-justified #main-container span,
.page-justified #main-container div {
  text-align: justify;
}

.page-justified #main-container p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.page-justified #main-container p:last-child {
  margin-bottom: 0;
}

.news-scroller {
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 2rem;
}
.news-accent {
  color: #2980b9;
}

.news-scroller ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}


.panel-heading h5 {
  font-style: italic;
  font-weight: 500;
  color: #1585cf !important;
}

#projects .panel-heading h5 {
  font-weight: 500;
  color: darkslategray !important;
}

p, table, tr, td, ul, li, blockquote, nav, a, footer, dl, dt, dd {
  font-size: 1.5rem;
  font-family: "Montserrat", Helvetica, sans-serif;
  font-weight: 400;
}

dt {
  font-weight: 600;
}

blockquote {
  border-left-color: slategray;
  color: slategray;
}

blockquote blockquote {
  border-left: none;
  margin: 1.5rem;
  font-style: italic;
}

cite {
  font-size: 1.5rem !important;
  display: block;
  margin-top: 1rem;
}

p {
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

blockquote footer {
  margin-top: 1.5rem;
  margin-left: 2rem;
  text-indent: -1.8rem;
}

.publications {
  list-style-type: none;
  padding-left: 2.5rem;
}

.publications li {
  margin-left: 2rem;
  text-indent: -2.5rem;
  ;
}

/* Links */
#main-container a {
  color: #1585cf;
  font-weight: 500;
}

#main-container a:hover {
  color: #1585cf;
  border-bottom: 1px dashed #1585cf;
  text-decoration: none;
  padding-bottom: 2px;
}

/* Contact info area, index.html page ------------------------------------------------- */
#title {
  color: #20364c;
  margin-top: 2rem;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
}

#program {
  color: gray;
  text-align: center;
}

iframe {
  padding: 3px;
  border: 1px solid rgb(76, 63, 63);
}

/* Format the nav  ---------------------------------------------------------- */
nav {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.navbar-default .navbar-nav>li>a {
  color: #223951;
  font-weight: 500;
}

.nav .montserrat:hover,
.nav .montserrat:focus-within,
.nav .montserrat:focus,
.navbar-inverse .navbar-nav>li>a:hover,
.navbar-inverse .navbar-nav>li>a:focus-within,
.navbar-inverse .navbar-nav>li>a:focus {
  background: white !important;
  border-radius: 1px;
  color: #262c32 !important;
}

.navbar-default .navbar-nav>li>a:active {
  background: white !important;
}

@media only screen and (min-width: 768px) {
  .navbar-default .navbar-nav>.open>a {
    background: white !important;
    border-right: 1px solid lightgray;
    border-top: 1px solid lightgray;
    border-left: 1px solid lightgray;
  }

  /* hover effects */
  /* Bubble Bottom */
  .hvr-bubble-bottom {
    display: inline-block;
    vertical-align: bottom;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
  }

  .hvr-bubble-bottom:before {
    pointer-events: none;
    position: absolute;
    z-index: -1;
    content: '';
    border-style: solid;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
    left: calc(50% - 10px);
    bottom: 0;
    border-width: 10px 10px 0 10px;
    border-color: white transparent transparent transparent;
  }

  .hvr-bubble-bottom:hover:before, .hvr-bubble-bottom:focus:before, .hvr-bubble-bottom:active:before {
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }
}

@media (max-width: 767px) {
  .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover {
    color: darkslategray !important;
  }
}

.navbar-inverse {
  background: #20364c;
}

.navbar-brand {
  font-size: 2.15rem !important;
  font-weight: 500;
  color: white !important;
}

/* Navbar link size */
.navbar-default .navbar-nav>li>a {
  font-size: 1.5rem !important;
}

.navbar-inverse .navbar-nav>li>a {
  color: white;
}

.navbar {
  border-radius: 0;
}

.active {
  /* background: white; */
  border-radius: 2px;
}

.navbar .dropdown-menu {
  margin-right: -1px;
}

/* Utility classes for positioning content ----------------------------------- */
.padding-left-1 {
  padding-left: 1rem !important;
}

.padding-left-2 {
  padding-left: 2rem !important;
}

.push-down-1 {
  margin-top: 1rem !important;
}

.push-down-2 {
  margin-top: 2rem !important;
}

.push-down-3 {
  margin-top: 3rem !important;
}

.push-down-4 {
  margin-top: 4rem !important;
}

.pull-up-1 {
  margin-top: -1rem !important;
}

.pull-up-2 {
  margin-top: -1rem !important;
}

.pull-up-3 {
  margin-top: -1rem !important;
}

.spacer-div-3 {
  height: 45px !important;
}

#link-to-docs,
#link-to-teaching-philosophy {
  color: #1585cf;
}

#link-to-docs:hover,
#link-to-docs:active,
#link-to-docs:visited,
#link-to-docs:focus {
  border: 1px solid #1585cf !important;
  padding-bottom: 6px !important;
  background: transparent !important;
}

/* Setting Lines after headers */
h3 {
  position: relative;
}

h3 span {
  background-color: white;
  padding-right: 10px;
}

h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5em;
  border-top: 2px solid slategray;
  z-index: -1;
}

/* Format the footer ---------------------------------------------------------- */
footer {
  padding-bottom: 2rem;
}

/* Format the social-professional network icons ------------------------------ */
.social-icons {
  list-style-type: none;
}

.social-icons li {
  padding-left: 2rem;
  display: inline-block;
}

.social-icons li a {
  color: #080808;
}

.social-icons li a:hover {
  opacity: .8;
  text-decoration: none !important;
}

/* Projects page --------------------------------------------------------- */
#projects .panel {
  margin-left: 2rem;
}

#projects .panel-default {
  border-radius: 3px;
}

#projects .panel-default {
  border-radius: 3px;
}

#projects .panel-heading {
  border-bottom: none;
}

#projects .panel-heading,
#projects .panel-footer {
  text-align: center;
  background: #000000;
  padding: 2rem;
}

#projects .panel-footer {
  border-top: none;
}

#projects .panel-heading h5 {
  color: black;
  font-style: normal;
  font-weight: 500;
  font-size: 1.75rem;
}

.panel-default .panel-heading a:hover {
  padding-bottom: 0px !important;
}

/* All Links panels ---------------------------------------------- */
#links .panel-default {
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

#links .panel-heading {
  border-bottom: none;
}

#links img {
  margin-right: 3rem;
  margin-bottom: 2rem;
  width: 100px;
  padding: 3px;
  border: 1px solid silver;
}

/* Lists ------------------------------------------------------------- */
/* Add bottom margin to the description lists */
dd {
  margin-bottom: 1rem;
}

/* Set the anchor element to display block */
.list-group li a {
  display: block;
}

/* Narrow the viewport ----------------------------------------------- */
/* Customize container */
@media only screen and (min-width: 767px) {
  .container {
    max-width: 730px;
  }
}

/* Responsive: Portrait tablets and up */
@media only screen and (min-width: 768px) {

  /* Remove the padding we set earlier */
  .container {
    max-width: 900px;
  }
}

/* Accordion panels ----------------------------------------------------- */
/* plus glyph for showing collapsible panels */
.panel-heading .accordion-plus-toggle:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f068";
  float: right;
  color: silver;
}

.panel-heading .accordion-plus-toggle.collapsed:before {
  content: "\f067";
  color: silver;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* arrow glyph for showing collapsible panels */
.panel-heading .accordion-arrow-toggle:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f078";
  float: right;
  color: silver;
}

.panel-heading .accordion-arrow-toggle.collapsed:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054";
  color: silver;
}

/* sets the link to the width of the entire panel title */
.panel-title>a {
  display: block;
}

/* Back to top button */

/* Back to top button ----------------------------------------------------- */
#topper {
  display: none;
  position: fixed;
  bottom: 300px;
  right: 0px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #1585cf;
  color: white;
  padding: 12px 6px 12px 6px;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  font-size: 1.6rem;
}

#topper:hover {
  background-color: #1585cf;
  opacity: .8;
}


/* Style the toggle button */
.toggle-button {
  cursor: pointer;
  background-color: #039BE5;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Hidden text block by default */
.text-block {
  display: none;
  padding: 15px;
  background-color: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 5px;
}


/* Pop-up styles */
.popup {
  display: none; /* Hidden by default */
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: auto; 
  max-width: 80vw;
  position: relative;
  text-align: left;
}

.popup-content h2 {
  margin-top: 0;
}

.popup-button {
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #d0d0d0;
}

/* Close button style */
.popup .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

/* Close button on hover */
.popup .close:hover,
.popup .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Open the popup */
.popup.open {
  display: flex;
  visibility: visible;
}

/* Code block styling */
pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', monospace;
  color: #d6336c;
  line-height: 1.5;
}

.solid-box {
  background-color: #7d5757; /* Blue background */
  color: white; /* White text */
  padding: 15px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}
.badge-open-source {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid #1c7c54;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  color: #1c7c54;
}
.pub-pill {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid #1c7c54;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  color: #1c7c54;
  text-decoration: none;
  cursor: pointer;
}
.pub-pill + .pub-pill {
  margin-left: 0.5rem;
}
.badge-open-source i {
  margin-right: 0.3rem;
}
.pub-links {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.95em;
}
.pub-links a {
  margin-right: 0.4rem;
}
.area-desc {
  margin: 0.4rem 0 0.2rem;
}

.achievement-list {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
}

.achievement-list li {
  margin-bottom: 0.9rem;
  text-align: justify;
}

.achievement-list li.highlight-award {
  list-style: none;
  background: #f4faff;
  border-left: 4px solid #1c7c54;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  margin-left: -2rem;
}
.news-icon {
  color: #1c7c54;
  margin-right: 0.35rem;
}

/* Profile card */
.profile-card {
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 2rem 1.8rem;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(0, 0, 0, 0.04);
  text-align: center;
  font-size: 1.2rem;
}
.page-justified #main-container .profile-card,
.page-justified #main-container .profile-card .profile-name,
.page-justified #main-container .profile-card .profile-title,
.page-justified #main-container .profile-card .profile-subtitle,
.page-justified #main-container .profile-card .profile-contact,
.page-justified #main-container .profile-card .profile-cta {
  text-align: center;
}
.profile-photo {
  width: 100%;
  max-width: 240px;
  min-width: 160px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #eef1f4;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-name {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #1e2a3a;
  text-align: center;
}
.profile-title {
  font-size: 1.35rem !important;
  font-weight: 600;
  color: #2d4d3b;
}
.profile-subtitle {
  font-size: 1.35rem !important;
  color: #4a5568;
  margin-bottom: 0.8rem;
}
.profile-contact {
  font-size: 1.35rem !important;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.profile-contact > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.profile-contact i {
  margin-right: 0.45rem;
  color: #1e2a3a;
}
.profile-email-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}
.profile-email {
  color: #1e2a3a;
}
.copy-email {
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  color: #1e2a3a;
}
.copy-email:hover {
  background: #f3f4f6;
}
.profile-social {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.profile-social a {
  color: #1e2a3a;
  transition: color 0.2s ease;
}
.profile-social a:hover {
  color: #1c7c54;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.8rem 0 0.2rem;
}
.profile-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: #f4f7f6;
  color: #1e2a3a;
  font-size: 0.9em;
  border: 1px solid #e2e8f0;
}
.research-area-line {
  margin: 0.6rem 0 1rem;
}
.profile-cta-card {
  max-width: 420px;
  margin: 0.8rem auto 0;
  background: #f7e9e9;
  border: 1px solid #f1dada;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  text-align: center;
}
.profile-cta {
  margin: 0;
  color: #7a2b2b;
  font-size: 1.3rem !important;
  line-height: 1.4;
}
.profile-updated {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #6c757d;
  text-align: center;
}

/* Artifacts page */
.artifact-grid {
  margin-top: 1rem;
}

.artifact-full-card {
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.artifact-row {
  margin-bottom: 1.2rem;
}

.artifact-card {
  background: #f9fbfd;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  text-align: left !important;
}

.artifact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.github-card {
  background: #ffffff;
  padding: 0;
}

.descriptor-card {
  background: #f4f6fb;
}

.artifact-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #1f3b57;
}

.artifact-title {
  font-size: 1.7rem;
  color: #1f3b57;
}

.artifact-card p {
  margin-bottom: 1rem;
  color: #223951;
}

.artifact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  background: #f0f4f8;
  border: 1px solid #e1e7ef;
  border-radius: 999px;
  font-size: 1.3rem;
  color: #1f3b57;
  text-decoration: none;
}

.meta-pill:hover {
  background: #e8edf5;
  text-decoration: none;
}

.lang-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6c757d;
}

.lang-python {
  background: #3670a0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  padding: 0.25rem 0.8rem;
  background: #e8edf5;
  border-radius: 6px;
  font-size: 1.25rem;
  color: #1f3b57;
  border: 1px solid #d8deea;
}

.artifact-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.artifact-year {
  display: inline-block;
  padding: 0.1rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #1c7c54;
  background: #f4faff;
  color: #1c7c54;
  font-weight: 600;
  font-size: 1.2rem;
}

.gh-card-link {
  display: block;
}

.gh-card-img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .artifact-row > div {
    margin-bottom: 1rem;
  }
}
