@media (max-width: 768px) {

  /* makes googlebot happy with tap target spacing */
  a {
    min-height: 48px !important;
    min-width: 48px !important;
    min-inline-size: 48px !important;
    margin-right: 4px;
    margin-left: 4px;
    line-height: 48px;
  }
}

img {
  max-width: 100% !important;
}

.p-0 {
  margin: 0 auto;
}

.devicons {
  font-size: 1.5em;
  vertical-align: sub;
}

/* ensure items with short summarues push date over image */
.publication-content {
  width: 90%;
}


h3 {
  margin-top: 40px;
}

h3.mb-0 {
  margin-top: 0;
}

div.skills-heading {
  margin-top: 1em;
  margin-bottom: 0 !important;
}



/* From https://codepen.io/wbeeftink/pen/dIaDH */

.tags {
  font: 12px/1.5 'PT Sans', serif;
  list-style: none;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.tags li {
  float: left;
}

.tag {
  background: var(--color-neutral-taupe);
  border-radius: 3px 0 0 3px;
  color: var(--color-text-soft);
  display: inline-block;
  height: 26px;
  line-height: 26px;
  padding: 0 20px 0 23px;
  position: relative;
  margin: 0 10px 10px 0;
  text-decoration: none;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.tag::before {
  background: var(--color-bg-white);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
  content: '';
  height: 6px;
  left: 10px;
  position: absolute;
  width: 6px;
  top: 10px;
}

.tag::after {
  background: var(--color-bg-white);
  border-bottom: 13px solid transparent;
  border-left: 10px solid var(--color-neutral-taupe);
  border-top: 13px solid transparent;
  content: '';
  position: absolute;
  right: 0;
  top: 0;
}

.tag:hover {
  background-color: var(--color-blue-pro);
  color: white;
}

.tag:hover::after {
  border-left-color: var(--color-blue-pro);
}

.project-fact {
  font-size: 80%;
  font-style: italic;
}




.resume-section blockquote {
  border-left: 4px solid var(--color-accent-vibrant);
  padding-left: 1em;
}

/* Fix responsive width for blog posts */
.my-auto {
  width: 100%
}

.advteaser {
  width: 250px;
  height: 250px;
  position: relative;
  display: inline-block;
}

.advteaser img {
  position: absolute;
  top: 0;
  left: 0;
}

.advteaser .img-top {
  display: none;
  z-index: 99;
}

.advteaser-container:hover .img-top {
  display: inline;
}

img.qrcode {
  max-width: 300px !important;
}

/* Navigation bar name styles */
.navbar-brand .text-white {
  font-size: 1.1rem;
}

.navbar-brand .text-white-50 {
  font-size: 0.95rem;
  opacity: 0.8;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', 'SimHei', sans-serif;
  font-weight: 400;
}

/* Chinese name in main content */
h2.text-muted {
  font-size: 2.5rem;
  font-weight: 500;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', 'SimHei', sans-serif;
}

/* News card effects */
.news-item {
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  margin-left: -1rem;
  margin-right: -1rem;
  background: var(--color-bg-warm);
  border-radius: 8px;
  border-left: 4px solid var(--color-blue-soft);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 80, 157, 0.1);
  border-left-color: var(--color-blue-pro);
}

/* Featured/Important awards - Large card styling */
.award-item.featured {
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  margin-left: -1rem;
  margin-right: -1rem;
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, #FFF5E6 100%);
  border-radius: 12px;
  border-left: 6px solid var(--color-accent-vibrant);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.award-item.featured:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(255, 136, 0, 0.15);
}

.award-item.featured .award-name {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.award-item.featured .award-level {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
}

.award-item.featured .award-date {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

/* Regular awards - Compact list styling */
.award-item:not(.featured) {
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-neutral-taupe);
  background: transparent;
  border-left: none;
  border-radius: 0;
  transition: all 0.2s ease;
}

.award-item:not(.featured):hover {
  padding-left: 0.5rem;
  background: rgba(251, 248, 255, 0.5);
}

.award-item:not(.featured):last-child {
  border-bottom: none;
}

.award-item:not(.featured) .award-name {
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.award-item:not(.featured) .award-level {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
}

.award-item:not(.featured) .award-date {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

/* News title link styling */
.news-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--color-blue-soft);
  transition: border-color 0.3s;
}

.news-title a:hover {
  color: var(--color-blue-pro);
  border-bottom-color: var(--color-blue-pro);
}