/* Academic Website CSS inspired by Bitterdhg.github.io */

/* Font imports */
@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;
}

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

/* Base styles */
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;
}

body {
  margin: 0;
  padding: 20px;
  background: white;
}

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;
  margin-bottom: 15px;
}

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

/* Lists */
ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

/* Experience list with logos */
.experience-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.company-logo {
  width: 80px;
  height: 80px;
  margin-right: 18px;
  margin-top: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.experience-content {
  flex: 1;
}

.experience-position {
  font-size: 14px;
  color: #333;
  margin-top: 2px;
  font-weight: 500;
}

.experience-group {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
  font-style: italic;
}

.experience-topic {
  font-size: 13px;
  color: #555;
  margin-top: 3px;
  font-style: italic;
}

.experience-date {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  font-style: italic;
}

/* Photo grid for Misc section */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.photo-item {
  text-align: center;
}

.misc-photo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.misc-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-caption {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  table {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  td[style*="width:63%"] {
    width: 100% !important;
    display: block;
    padding: 2.5% !important;
  }
  
  td[style*="width:37%"] {
    width: 100% !important;
    display: block;
    text-align: center;
    padding: 2.5% !important;
  }
  
  td[style*="width:37%"] img {
    width: 200px !important;
    max-width: 200px !important;
  }
  
  .name {
    font-size: 28px !important;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .misc-photo {
    height: 100px;
  }
}