/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  text-align: justify;
  hyphens: auto;
  word-wrap: break-word;
}

strong {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px;
}

.papertitle {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 36px;
}

.one {
  width: 100%;
  max-width: 360px;
  height: auto;
  min-height: 270px;
  position: relative;
}

.two {
  width: 100%;
  max-width: 360px;
  height: auto;
  min-height: 270px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

/* Make all images and videos responsive */
.one img, .two img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.one video, .two video {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

/* Publication spacing */
.pub-item td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Tighter paragraph spacing in intro */
#home p {
  margin-bottom: 12px;
  margin-top: 12px;
}

/* ===== Navigation Bar Styling ===== */
#navbar {
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  background-color: #353A40;
  /* border-bottom: 1px solid #ddd; */
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#navbar a {
  text-decoration: none;
  color: #9A9DA0;
  padding: 8px 12px;
  display: inline-block;
  transition: color 0.2s ease;
}

#navbar a:hover {
  color: #f09228;
  text-decoration: underline;
}

/* ===== Modern Responsive Layout ===== */
/* Ensure body takes full width */
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Container improvements for larger screens */
@media (min-width: 1201px) {
  table[id="home"] {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 40px 60px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  table[id="home"] {
    max-width: 95vw !important;
    margin: 0 auto;
    padding: 30px 40px;
  }
}

/* Hide navbar on mobile devices */
@media (max-width: 600px) {
  #navbar {
    display: none;
  }
}

/* ===== Mobile Responsive Styles ===== */
@media (max-width: 768px) {
  body, td, th, tr, p, a {
    font-size: 16px;
  }
  
  strong {
    font-size: 16px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  .name {
    font-size: 28px;
    text-align: center;
  }
  
  .papertitle {
    font-size: 16px;
  }
  
  /* Make tables responsive */
  table {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Override the main container's max-width on mobile */
  table[id="home"] {
    max-width: none !important;
    margin: 0 !important;
    padding: 20px 15px !important;
  }
  
  /* Adjust padding for mobile */
  td {
    padding: 15px 10px !important;
  }
  
  /* Stack profile image and text vertically on mobile - only for main profile section */
  table tbody tr:first-child td[style*="width:63%"] {
    width: 100% !important;
    display: block;
    text-align: center;
    order: 2;
    padding: 20px 10px !important;
  }
  
  table tbody tr:first-child td[style*="width:20%"] {
    width: 100% !important;
    display: block;
    text-align: center;
    order: 1;
    padding: 20px 10px 10px 10px !important;
  }
  
  /* For research papers - stack vertically */
  table tbody tr td[style*="width:25%"] {
    width: 100% !important;
    display: block;
    text-align: center;
    padding: 15px 10px 10px 10px !important;
  }
  
  table tbody tr td[style*="width:75%"] {
    width: 100% !important;
    display: block;
    padding: 10px 10px 15px 10px !important;
  }
  
  /* Profile image adjustments */
  img[alt="profile photo"] {
    width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 0;
  }
  
  /* Research paper layout adjustments */
  .one {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 15px auto;
  }
  
  .two {
    width: 100%;
    max-width: 200px;
    height: auto;
  }
  
  /* Video adjustments */
  video {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Links and text alignment */
  p {
    text-align: left !important;
  }
  
  p[style*="text-align:center"] {
    text-align: center !important;
  }
  
  /* Lists on mobile */
  ul {
    padding-left: 20px;
  }
  
  li {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  body, td, th, tr, p, a {
    font-size: 15px;
  }
  
  .name {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  .papertitle {
    font-size: 15px;
  }
  
  td {
    padding: 10px 5px !important;
  }
  
  /* Even smaller profile image for very small screens */
  img[alt="profile photo"] {
    width: 120px !important;
    max-width: 120px !important;
    height: 120px !important;
    border-radius: 0;
  }
  
  .one {
    width: 100%;
    max-width: none;
    height: auto;
  }
  
  .two {
    width: 100%;
    max-width: none;
    height: auto;
  }
  
  /* Smaller navbar font */
  #navbar {
    font-size: 14px;
    padding: 8px 0;
  }
  
  #navbar a {
    padding: 6px 8px;
  }
}
