.center {
  margin: auto;
  max-width: 1200px;
  padding: 10px;
}

.container-fluid {
 padding: 30px;
}

body {
  font-size: 18px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

pre {
  font-size: 16px;
}

.name {
  font-size: 18px;
  font-family: Helvetica, Arial, sans-serif;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 20px;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.name:hover {
  color: #3498db;
}

.affiliation {
  font-size: 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-style: normal;
  font-variant: normal;
  font-weight: 300;
  line-height: 20px;
  color: #7f8c8d;
}

h1.display-1 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

h2 {
  color: #34495e;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

h3 {
  color: #2c3e50;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  color: #34495e;
  font-weight: 600;
  margin-top: 20px;
}

p.lead {
  font-size: 22px;
  color: #546e7a;
  font-weight: 300;
  margin-bottom: 30px;
}

.sidenav {
  padding: 10px;
  position: fixed;
  top: 120px;
  width: 16.7%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.barright {
  right: 0;
}

.shift {
  padding: 0 15px;
}

.nav-pills > li > a {
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-pills > li > a:hover {
  background-color: #3498db;
  color: white;
  transform: translateX(5px);
}

.vid-caption {
  padding: 5px;
}

.vid-item {
  min-height: 15vw;
}

.slidebutton {
  font-size: 21px;
}

img.sr-inp {
    display: none;
}

@media only screen and (max-width: 960px) {
    .sidenav {
        display: none;
    }
}

.sidenav a:hover {
  color: #064579;
}

.my-buttons {
    padding: 10px;
}

.slick-prev:before, .slick-next:before{
    background-color: #666666;
    border-radius: 50%;
}

.grey {
    background-color: #edf3fc;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* Previous Work Section */
.previous-work {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.iceformer-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.iceformer-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  margin-top: 10px;
  text-align: center;
}

.link-card:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.link-card strong {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.link-description {
  font-size: 14px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.4;
}

/* Enhanced Images */
img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Code blocks */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
}

pre code {
  color: #495057;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Links in content */
.text-left a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.text-left a:hover {
  border-bottom-color: #3498db;
  text-decoration: none;
}

/* ICLR Badge */
.container-fluid > div > a[href*="iclr.cc"] {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
  transition: all 0.3s ease;
}

.container-fluid > div > a[href*="iclr.cc"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
  text-decoration: none;
}

/* HR improvements */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 40px 0;
}

/* List improvements */
ul {
  line-height: 1.8;
}

ul li {
  margin-bottom: 10px;
}
