/* CSS Reset: http://meyerweb.com/eric/tools/css/reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/**************************************************/

#body{
  font-family: 'Asap', roboto, sans-serif;
  font-size: 1em;
  line-height: 1.5em;
  color: #150c21;
}

#main {
  width: 54em;
  margin: 0px auto;
  position: relative;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: rgb(20, 110, 190);
}

a:hover {
  text-decoration: none;
  border-bottom: 1px solid rgb(20, 110, 190);
}

i {
  font-style: italic;
}

b {
  font-weight: 700;
}

h1 {
  font-size: 2.4em;
  line-height: 2.4em;
  font-weight: 500;
}

/**************************************************/
/* Profile image and description. */

#intro {
  padding-top: 6em;
  display: flex;
}

#intro-text {
  width: 40em;
  float: left;
}

#intro-image {
  margin: 2.7em 0 0 2em;
  width: 12em;
  height: 12em;
  float: left;
  overflow: hidden;
  border-radius: 1em;
}

#intro-image img {
  width: 12em;
}

/**************************************************/
/* Section buttons. */

#menu {
  display: flex;
}

/* Top navigation row: filter buttons (left) + extra links (right) */
#nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2em 0.9em;
}

#filters .button {
  float: none;
  margin-right: 0;
}

#nav-extras {
  margin-left: auto;
}

.nav-extra-link {
  display: inline-block;
  cursor: pointer;
  border: none;
  background: none;
  color: #a0a8b0;
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  padding: 0;
}

.nav-extra-link:hover {
  color: #150c21;
  border-bottom: 1px solid rgb(20, 110, 190);
}

body.dark-theme .nav-extra-link {
  color: #b0b0b0;
}

body.dark-theme .nav-extra-link:hover {
  color: #ffffff;
  border-bottom: 1px solid #4a9eff;
}

.menu-item {
  float: left;
  margin-right: 2em;
}

h2 {
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  color: #a0a8b0;
}

.selected h2 {
  color: #150c21;
}

.button {
  display: inline-block;
  cursor: pointer;
  border: none;
  background: none;
  color: #a0a8b0;
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  margin-right: 1em;
  float: left;
  padding: 0;
}

.button:hover {
  color: #150c21;
}

.button:active,
.button.is-checked {
  color: #150c21;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

/**************************************************/
/* Isotope grid list of items. */

.grid {
  padding-bottom: 6em;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.description {
  margin-bottom: 1em;
}

.list-item {
  width: 100%;
  line-height: 1em;
  margin-top: 1em;
}

.list-item p.date {
  display: inline-block;
  width: 3em;
  color: #a0a8b0;
}


/**************************************************/
/* Gallery of 3 preview videos. */

.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  height: 12.5em;
}

.previews video {
  border-radius: 5px;
}

.previews a:hover {
  border: none;
}

.preview1 {
  grid-column: 1;
  width: 100%;
}
.preview2 {
  grid-column: 2;
  width: 100%;
}
.preview3 {
  grid-column: 3;
  width: 100%;
}

/* .list-item.hobby {
  line-height: 1.8em;
  margin-bottom: 10px;
  /* width: 80%;
} */

.rank, .inst {
  font-style: italic;
  color: #555;
  margin-left: 0.3em;
}

/**************************************************/
/* Buttons for showing more or less highlights. */

.toggle-button {
  margin-top: 1em;
}

.toggle-button a {
  color: #a0a8b0;
}

.toggle-button a:hover {
  color: rgb(20, 110, 190);
}

/**************************************************/
/* Publication details (thumbnail media, title, and description). */

.thumbnail {
/*  width: 21%;*/
  width: 18%;
  float: left;
  margin-right: 2%;
}

.thumbnail:hover {
  border-bottom: none;
}

.thumbnail img {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 180px;
  object-fit: contain;
  aspect-ratio: 4/3;
  background-color: #f5f5f5;
}

.thumbnail video {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 180px;
  aspect-ratio: 4/3;
}

h3 {
  font-size: 1em;
  line-height: 1.5em;
}

h3 a {
  color: #150c21;
}

h3 a:hover {
  color: rgb(20, 110, 190);
}

.publication {
  margin-bottom: 0.5em;
}

.publication strong {
  font-weight: 500;
  color: #000;   /* 或者用更深的颜色，突出显示 */
  text-decoration: underline; /* 下划线 */
  text-underline-offset: 2px;
}

/* Equal contribution footnote styling */
.co-first-author {
  font-weight: bold;
  font-size: 0.8em;
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
}

.publication p {
  font-size: 1em;
  line-height: 1.5em;
  color: #a0a8b0;
}

.project-description {
  width: 80%;
  float: left;
}

/**************************************************/
/* Subtle footer at the bottom of the page. */

#footer {
  color: #a0a8b0;
  position: absolute;
  bottom: 0;
  line-height: 2.5em;
}

/* Custom styles for Ken's website */
.edu-list, .honor-list, .award-list, .hobby {
  margin-top: 1em;
}

/* Academic category (Education + Awards) */
.list-item.academic {
  /* Inherits styles from .edu-item and .award */
}

/* Experience-all category (Teaching & Service + Experience + Projects) */
.list-item.experience-all {
  /* Inherits styles from .teaching-service, .experience, .projects */
}

/* Enhanced Skills Section */
.list-item.skills {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.2em;
  border-left: 4px solid #146ebe;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Enhanced Awards Section */
.list-item.award {
  background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.2em;
  border-left: 4px solid #689f38;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
}

.list-item.award:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-item.award .date {
  min-width: 4em;
  color: #33691e !important;
  font-weight: 600;
  font-size: 1.1em;
  margin-right: 1em;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5em;
  border-radius: 6px;
}

.list-item.award .date::after {
  content: '🏆';
  display: block;
  font-size: 1.2em;
  margin-top: 0.2em;
}

.list-item.award .award-content {
  flex: 1;
  color: #33691e;
  font-weight: 500;
  line-height: 1.4;
}

.list-item.award .inst {
  color: #689f38;
  font-style: normal;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  margin-left: 0.5em;
}

.list-item.skills:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-item.skills .project-description h3 {
  color: #146ebe;
  font-weight: 600;
  margin-bottom: 0.8em;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.list-item.skills .project-description h3::before {
  content: '🔧';
  margin-right: 0.5em;
  font-size: 1.1em;
}

.list-item.skills .project-description p {
  line-height: 1.6;
  color: #495057;
  margin-bottom: 0;
}

.list-item.skills:nth-child(1) .project-description h3::before { content: '⚙️'; }
.list-item.skills:nth-child(2) .project-description h3::before { content: '💻'; }
.list-item.skills:nth-child(3) .project-description h3::before { content: '🤖'; }
.list-item.skills:nth-child(4) .project-description h3::before { content: '🌐'; }

.edu-item {
  display: flex;
  align-items: center;
  padding: 4px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.edu-item img {
  width: 80%;
  max-width: 100px;
}

.news-item, .project-item, .education-item, .research-area {
  margin-bottom: 1em;
  padding: 1em 0;
  border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child, .project-item:last-child, .education-item:last-child, .research-area:last-child {
  border-bottom: none;
}

.skill-category {
  margin-bottom: 1em;
  padding: 1em 0;
}

/* Enhanced Teaching & Service Section */
.list-item.teaching-service {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.2em;
  border-left: 4px solid #ff9800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item.teaching-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-item.teaching-service .project-description h3 {
  color: #e65100;
  font-weight: 600;
  margin-bottom: 1em;
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

.list-item.teaching-service .project-description h3::before {
  content: '📚';
  margin-right: 0.5em;
  font-size: 1.1em;
}

.teaching-service ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.teaching-service li {
  margin-bottom: 0.8em;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
  color: #5d4037;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.6em 0.6em 0.6em 1.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.teaching-service li:hover {
  background: rgba(255, 255, 255, 0.8);
}

.teaching-service li::before {
  content: '▶';
  position: absolute;
  left: 0.3em;
  color: #ff9800;
  font-size: 0.8em;
  font-weight: bold;
  top: 0.7em;
}

/* Enhanced Experience Section */
.list-item.experience {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.2em;
  border-left: 4px solid #4caf50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item.experience:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-item.experience .project-description h3 {
  color: #2e7d32;
  font-weight: 600;
  margin-bottom: 1em;
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

.list-item.experience .project-description h3::before {
  content: '💼';
  margin-right: 0.5em;
  font-size: 1.1em;
}

.experience ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.experience li {
  margin-bottom: 0.8em;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
  color: #1b5e20;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.6em 0.6em 0.6em 1.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.experience li:hover {
  background: rgba(255, 255, 255, 0.8);
}

.experience li::before {
  content: '▶';
  position: absolute;
  left: 0.3em;
  color: #4caf50;
  font-size: 0.8em;
  font-weight: bold;
  top: 0.7em;
}

/* Enhanced Projects Section */
.list-item.projects {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.2em;
  border-left: 4px solid #03a9f4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-item.projects:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-item.projects .project-description h3 {
  color: #0277bd;
  font-weight: 600;
  margin-bottom: 1em;
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

.list-item.projects .project-description h3::before {
  content: '🚀';
  margin-right: 0.5em;
  font-size: 1.1em;
}

.projects p {
  line-height: 1.6;
  color: #01579b;
}

/**************************************************/
/* Dark Theme Styles */

body.dark-theme {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-theme #body {
  color: #e0e0e0;
}

body.dark-theme #main {
  background-color: #1a1a1a;
}

/* Text colors */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
  color: #ffffff;
}

body.dark-theme h2 {
  color: #b0b0b0;
}

body.dark-theme .selected h2 {
  color: #ffffff;
}

body.dark-theme p {
  color: #e0e0e0;
}

body.dark-theme #intro-text p {
  color: #e0e0e0;
}

body.dark-theme strong,
body.dark-theme b {
  color: #ffffff;
}

body.dark-theme a {
  color: #4a9eff;
}

body.dark-theme a:hover {
  border-bottom: 1px solid #4a9eff;
}

body.dark-theme h3 a {
  color: #ffffff;
}

body.dark-theme h3 a:hover {
  color: #4a9eff;
}

/* Button styles */
body.dark-theme .button {
  color: #b0b0b0;
}

body.dark-theme .button:hover {
  color: #ffffff;
}

body.dark-theme .button:active,
body.dark-theme .button.is-checked {
  color: #ffffff;
}

/* Border colors */
body.dark-theme .list-item {
  border-bottom: 1px solid #333333;
}

body.dark-theme .edu-item {
  border-bottom: 1px solid #333333;
}

body.dark-theme .news-item,
body.dark-theme .project-item,
body.dark-theme .education-item,
body.dark-theme .research-area {
  border-bottom: 1px solid #333333;
}

/* Publication styles */
body.dark-theme .publication p {
  color: #e0e0e0;
}

body.dark-theme .publication strong {
  color: #ffffff;
}

body.dark-theme .list-item p.date {
  color: #b0b0b0;
}

body.dark-theme .rank,
body.dark-theme .inst {
  color: #888888;
}

body.dark-theme .toggle-button a {
  color: #b0b0b0;
}

body.dark-theme .toggle-button a:hover {
  color: #4a9eff;
}

/* Project descriptions */
body.dark-theme .project-description p {
  color: #e0e0e0;
}

body.dark-theme .project-description strong {
  color: #ffffff;
}

/* Footer */
body.dark-theme #footer {
  color: #b0b0b0;
}

/* Lists */
body.dark-theme li {
  color: #e0e0e0;
}

body.dark-theme .teaching li {
  color: #e0e0e0;
}

body.dark-theme .teaching li::before {
  color: #ff9800;
}

/* Dark theme for enhanced Skills section */
body.dark-theme .list-item.skills {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-left-color: #4a9eff;
}

body.dark-theme .list-item.skills:hover {
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

body.dark-theme .list-item.skills .project-description h3 {
  color: #4a9eff;
}

body.dark-theme .list-item.skills .project-description p {
  color: #e2e8f0;
}

/* Dark theme for enhanced Teaching & Service section */
body.dark-theme .list-item.teaching-service {
  background: linear-gradient(135deg, #3d2914 0%, #2d1a00 100%);
  border-left-color: #ff9800;
}

body.dark-theme .list-item.teaching-service:hover {
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

body.dark-theme .list-item.teaching-service .project-description h3 {
  color: #ffb74d;
}

body.dark-theme .teaching-service li {
  color: #d4a574;
  background: rgba(0, 0, 0, 0.2);
}

body.dark-theme .teaching-service li:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Dark theme for enhanced Experience section */
body.dark-theme .list-item.experience {
  background: linear-gradient(135deg, #1b2f1b 0%, #0d1f0d 100%);
  border-left-color: #4caf50;
}

body.dark-theme .list-item.experience:hover {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

body.dark-theme .list-item.experience .project-description h3 {
  color: #81c784;
}

body.dark-theme .experience li {
  color: #a5d6a7;
  background: rgba(0, 0, 0, 0.2);
}

body.dark-theme .experience li:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Dark theme for enhanced Projects section */
body.dark-theme .list-item.projects {
  background: linear-gradient(135deg, #0d2b3d 0%, #051a26 100%);
  border-left-color: #03a9f4;
}

body.dark-theme .list-item.projects:hover {
  box-shadow: 0 4px 12px rgba(3, 169, 244, 0.2);
}

body.dark-theme .list-item.projects .project-description h3 {
  color: #4fc3f7;
}

body.dark-theme .projects p {
  color: #81d4fa;
}

/* Dark theme for enhanced Awards section */
body.dark-theme .list-item.award {
  background: transparent !important;
  border-left-color: #689f38;
  color: #e0e0e0 !important;
}

body.dark-theme .list-item.award:hover {
  box-shadow: 0 4px 12px rgba(104, 159, 56, 0.2);
  background: rgba(104, 159, 56, 0.05) !important;
}

body.dark-theme .list-item.award .date {
  color: #8bc34a !important;
  background: transparent !important;
}

body.dark-theme .list-item.award .award-content {
  color: #e0e0e0;
}

body.dark-theme .list-item.award .inst {
  color: #8bc34a;
  background: rgba(104, 159, 56, 0.2) !important;
}

body.dark-theme .list-item.news {
  color: #e0e0e0 !important;
}

/* Dark theme: Academic section - transparent background */
body.dark-theme .list-item.academic {
  background: transparent !important;
}

body.dark-theme .list-item.academic .edu-item {
  background: transparent !important;
}

body.dark-theme .list-item.academic .project-description {
  background: transparent !important;
}

body.dark-theme .list-item.academic .project-description p,
body.dark-theme .list-item.academic .project-description div,
body.dark-theme .list-item.academic .project-description ul,
body.dark-theme .list-item.academic .project-description li {
  background: transparent !important;
  color: #e0e0e0 !important;
}

body.dark-theme .list-item.academic .project-description b,
body.dark-theme .list-item.academic .project-description strong {
  color: #e0e0e0 !important;
}

body.dark-theme .list-item.academic .project-description a {
  color: #4a9eff !important;
}

/* Dark theme: Hobbies/Gallery section */
body.dark-theme .list-item.gallery {
  background: transparent !important;
}

body.dark-theme .list-item.gallery .project-description {
  background: transparent !important;
}

body.dark-theme .list-item.gallery .project-description h3,
body.dark-theme .list-item.gallery .project-description h4 {
  color: #4a9eff !important;
}

body.dark-theme .list-item.gallery .project-description p {
  color: #e0e0e0 !important;
  background: transparent !important;
}

body.dark-theme .list-item.gallery .project-description p[style*="color"] {
  color: #e0e0e0 !important;
}

body.dark-theme .list-item.gallery .project-description div {
  background: transparent !important;
  border-top-color: #444444 !important;
}

body.dark-theme .list-item.gallery .project-description div[style*="border-top"] {
  border-top-color: #444444 !important;
}

body.dark-theme .list-item.gallery .gallery-photo-item {
  background: #2a2a2a !important;
  color: #a0a0a0 !important;
}

/* Dark theme: Override inline styles in Academic section */
body.dark-theme .list-item.academic div[style*="color"],
body.dark-theme .list-item.academic div[style*="color:"] {
  color: #e0e0e0 !important;
}

body.dark-theme .list-item.academic p[style*="color"],
body.dark-theme .list-item.academic p[style*="color:"] {
  color: #e0e0e0 !important;
}

body.dark-theme .list-item.academic div[style*="background"],
body.dark-theme .list-item.academic div[style*="background-color"] {
  background: transparent !important;
  background-color: transparent !important;
}

body.dark-theme .list-item.academic .edu-item > div > div {
  background: transparent !important;
  background-color: transparent !important;
}

/* Education items text */
body.dark-theme .edu-item p,
body.dark-theme .edu-item b {
  color: #e0e0e0 !important;
}

body.dark-theme .edu-item b {
  color: #ffffff !important;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: 2px solid #a0a8b0;
  cursor: pointer;
  font-size: 1.5em;
  color: #a0a8b0;
  z-index: 10000;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: #150c21;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: #150c21;
}

.theme-toggle:focus {
  outline: 2px solid #146ebe;
  outline-offset: 2px;
}

body.dark-theme .theme-toggle {
  color: #b0b0b0;
  border-color: #b0b0b0;
}

body.dark-theme .theme-toggle:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

body.dark-theme .theme-toggle:focus {
  outline-color: #4a9eff;
}

/* Smooth transitions for theme switching */
body,
body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Profile image placeholder in dark theme */
body.dark-theme #intro-image > div {
  background-color: #333333 !important;
  color: #b0b0b0 !important;
}

/* Education placeholder in dark theme */
body.dark-theme .edu-item div > div {
  background-color: transparent !important;
  color: #e0e0e0 !important;
}

/* Dark theme: beautify university logos */
body.dark-theme .edu-item img {
  filter: brightness(1.15) contrast(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

body.dark-theme .edu-item img:hover {
  filter: brightness(1.3) contrast(1.15) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transform: scale(1.05);
}

/* Dark theme: logo container styling - subtle glow effect */
body.dark-theme .edu-item > div > div {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

body.dark-theme .edu-item > div > div:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(74, 158, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Gallery photo hover effects */
.gallery-photo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-photo-item:hover .gallery-caption {
  transform: translateY(0);
}