/*!
 * Clean Academic Resume Stylesheet
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  font-size: 18px;
  padding: 35px 20px;
}

/* Container */
.container {
  max-width: 950px;
  margin: 0 auto;
}

.container-fluid {
  max-width: 950px;
  margin: 0 auto;
}

/* Header section */
.row {
  margin-bottom: 10px;
}

h1, h2 {
  font-weight: bold;
  color: #333;
}

h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

h3 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

h4 {
  font-size: 21px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #444;
}

/* Profile image */
.img-responsive {
  border: 1px solid #ccc;
  max-width: 100%;
  height: auto;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation list */
.list-inline {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.6;
  list-style: none;
  padding: 0;
}

.list-inline-item {
  display: inline;
  margin-right: 4px;
}

.list-inline-item.separator {
  margin-right: 4px;
  color: #ccc;
}

.list-inline li:not(:last-child):after {
  content: none;
}

/* Interest section */
p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 12px;
}

p b {
  color: #1e40af;
  font-weight: bold;
}

/* Sections */
.resume-section {
  padding: 25px 15px;
  margin-bottom: 10px;
}

section {
  padding: 25px 15px;
}

/* Horizontal rules */
hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

/* Papers section */
.subheading ul {
  list-style: none;
  padding: 0;
}

.subheading li {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.5;
  padding: 8px 12px;
  border-left: none;
  transition: background-color 0.2s ease;
}

.subheading li:hover {
  background-color: #fffbeb;
}

.font-italic {
  color: #555;
  font-style: italic;
}

/* Teaching section */
.font-weight-bold {
  font-weight: bold;
}

.text-md-right {
  text-align: right;
}

/* Icons */
.far, .fas, .fab {
  padding: 2px;
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 20px 15px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 19px;
  }

  .text-md-right {
    text-align: left;
  }
}

/* Bootstrap grid compatibility */
.col-lg-3, .col-lg-5, .col-md-3, .col-md-11, .col-md-1 {
  padding: 0 15px;
}

@media (min-width: 768px) {
  .row {
    display: flex;
    flex-wrap: wrap;
  }

  .col-md-1 {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-md-11 {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-lg-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
}

/* Utility classes */
.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-6 {
  margin-bottom: 2rem;
}

.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

.my-auto {
  margin-top: auto;
  margin-bottom: auto;
}

.mr-auto {
  margin-right: auto;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}
