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

p + ul {
    margin-top: -10px;
}

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

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

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

slogan {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #008CBA;
}

name {
  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;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.button {
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  font-family: "Lato";
  margin: 4px 2px;
  cursor: pointer;
}

.button1 {background-color: #79B8FF;} /* Green */

.button2 {background-color: #008CBA;} /* Blue */

/* ========================================
   RESPONSIVE DESIGN - MOBILE VS DESKTOP
   ======================================== */

/* Desktop / larger screens */
@media (min-width: 768px) {
  body {
    font-size: 14px;
    background-color: white;
    line-height: 1.15;
  }
  
  /* Main container adjustments for desktop */
  table[style*="max-width:800px"] {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  /* Profile section - side by side layout */
  td[style*="width:63%"] {
    padding: 2.5% !important;
    width: 63% !important;
  }
  
  td[style*="width:40%"] {
    padding: 2.5% !important;
    width: 40% !important;
    max-width: 40% !important;
  }
  
  /* Typography scaling for desktop */
  name {
    font-size: 30px;
  }
  
  heading {
    font-size: 20px;
  }
  
  p, td, th, tr, a {
    font-size: 14px;
  }
  
  strong {
    font-size: 14px;
  }
  
  /* Navigation links spacing */
  p[style*="text-align:center"] a {
    margin: 0 4px;
    padding: 2px 2px;
  }
  
  /* Section spacing */
  td[style*="padding:5px"] {
    padding: 20px !important;
  }
  
  /* List item spacing for desktop */
  li {
    margin-bottom: 4px;
  }
}

/* Mobile / smaller screens */
@media (max-width: 767px) {
  html {
    overflow-x: hidden;
    width: 100%;
  }
  
  body {
    font-size: 12px;
    background-color: #f8f9fa;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  /* Main container adjustments for mobile */
  table[style*="max-width:800px"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px !important;
    box-sizing: border-box;
  }
  
  /* Remove all table margins and padding */
  table, tbody, tr, td {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Force all elements to stay within viewport */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Profile section - stacked layout */
  td[style*="width:63%"] {
    padding: 10px 5px !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
  }
  
  td[style*="width:40%"] {
    padding: 10px 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  /* Profile image adjustments */
  img[alt="profile photo"] {
    max-width: 200px !important;
    width: 60% !important;
    margin: 0 auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all images stay within bounds */
  img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Typography scaling for mobile */
  name {
    font-size: 24px;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }
  
  heading {
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  p, td, th, tr, a {
    font-size: 12px;
  }
  
  strong {
    font-size: 12px;
  }
  
  /* Bullet point adjustments for mobile */
  ul {
    padding-left: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  li {
    margin-bottom: 8px !important;
    padding-left: 1.5px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Navigation links - mobile friendly */
  p[style*="text-align:center"] {
    text-align: center !important;
    margin: 20px 0 !important;
  }
  
  p[style*="text-align:center"] a {
    margin: 0 1px;
    padding: 2px 2px;
  }
  
  /* Section spacing for mobile */
  td[style*="padding:5px"] {
    padding: 10px 5px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Experience and Teaching sections - mobile optimization */
  p {
    margin-bottom: 15px !important;
  }
  
  /* Links in experience descriptions */
  span[style*="color: #636363"] {
    font-size: 11px;
    line-height: 1.0;
  }
  
  /* Button adjustments for mobile */
  .button {
    padding: 12px 24px;
    font-size: 14px;
    margin: 8px 4px;
  }
  
  /* Center class adjustments */
  .center {
    width: 90%;
    margin: 20px auto;
  }
}


/* Very small screens */
@media (max-width: 480px) {
  body {
    font-size: 11px;
  }
  
  name {
    font-size: 22px;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }
  
  heading {
    font-size: 15px;
  }
  
  /* Bullet point adjustments for very small screens */
  ul {
    padding-left: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  li {
    padding-left: 1px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  img[alt="profile photo"] {
    max-width: 180px !important;
    width: 70% !important;
  }
  
  p[style*="text-align:center"] a {
    margin: 0 1px;
    padding: 2px 2px;
  }
}