/* 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: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.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;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* Bootstrap overrides and custom styles */

/* Typography adjustments for academic websites */
body {
  font-size: 1rem;
  line-height: 1.6;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Profile section specific styles */
#Home h3 {
  text-align: center;
}

@media (min-width: 768px) {
  #Home h3 {
    text-align: left;
  }
}

/* Custom navbar styles */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  position: relative;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler .line {
  width: 25px;
  height: 3px;
  background-color: #2C4282;
  display: block;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
}

.navbar-toggler.collapsed .line:nth-child(1) {
  transform: rotate(0);
}

.navbar-toggler.collapsed .line:nth-child(2) {
  opacity: 1;
}

.navbar-toggler:not(.collapsed) .line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .line:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation link hover effects */
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #1a2c5a !important;
}

/* Profile image styling */
.profile-img {
  border-radius: 50%;
  object-fit: cover;
}

/* News section styling */
#newsList, #moreNewsList {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

#newsList li, #moreNewsList li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #e9ecef;
}

#newsList li:last-child, #moreNewsList li:last-child {
  border-bottom: none;
}

/* Reduce spacing between collapsed and expanded news sections */
#collapseNews {
  margin-top: 0;
}

#collapseNews ul {
  margin-top: 0;
  margin-bottom: 0;
}

/* News toggle button styling */
#newsToggle {
  margin-top: 0.5rem;
}

/* Publication styling */
.publication {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.publication:last-child {
  border-bottom: none;
}

.publication b {
  font-size: 1.1rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 0.5rem;
}

.publication p {
  margin-bottom: 0;
  line-height: 1.5;
}

.publication a {
  color: #2C4282;
  text-decoration: none;
}

.publication a:hover {
  color: #1a2c5a;
  text-decoration: underline;
}

/* Highlight text styling */
.highlight-text {
  background-color: #fff3cd;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* Filter options styling */
.filter-options {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.filter-options a {
  color: #2C4282;
  text-decoration: none;
  margin-right: 0.5rem;
}

.filter-options a:hover {
  text-decoration: underline;
}

.active-filter {
  font-weight: bold;
  color: #1a2c5a !important;
}

/* Year group styling */
.year-group {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.year-group b {
  font-size: 1.2rem;
  color: #2C4282;
}

.year-group hr {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-color: #2C4282;
  opacity: 0.3;
}

/* BibTeX content styling */
.bibtex-content {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  overflow-x: auto;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .publication .col-sm-3 {
    margin-bottom: 1rem;
  }
  
  .publication b {
    font-size: 1rem;
  }
}

/* Custom button styling */
.btn-custom {
  background-color: #2C4282;
  border-color: #2C4282;
  color: white;
}

.btn-custom:hover {
  background-color: #1a2c5a;
  border-color: #1a2c5a;
  color: white;
}

/* Link styling for collapse toggles */
a[data-bs-toggle="collapse"] {
  color: #2C4282;
  text-decoration: none;
  font-size: 0.9rem;
}

a[data-bs-toggle="collapse"]:hover {
  color: #1a2c5a;
  text-decoration: underline;
}

/* Footer styling */
footer {
  font-size: 0.85rem;
}

/* Card styling for expandable content */
.card-body {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
}

/* Legacy styles for compatibility */
a {
  color: #2C4282;
}

a:hover {
  color: #1a2c5a;
}

/* Video styling */
video {
  border-radius: 0.375rem;
}

/* Image border radius consistency */
.rounded {
  border-radius: 0.375rem !important;
}