:root {
  --bg: #e7edf4;
  --bg-alt: #dce5f0;
  --surface: #ffffff;
  --text: #0c1729;
  --muted: #44556c;
  --accent: #1b67b3;
  --accent-strong: #0f4f8d;
  --accent-2: #d6794e;
  --accent-3: #2ea0c3;
  --accent-soft: #dfeaf8;
  --border: #bfd0e2;
  --shadow-soft: 0 20px 44px rgba(20, 31, 50, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(64% 34% at 8% 0%, rgba(214, 121, 78, 0.18), transparent 70%),
    radial-gradient(84% 42% at 85% 8%, rgba(46, 160, 195, 0.16), transparent 72%),
    radial-gradient(92% 44% at 15% 100%, rgba(97, 117, 160, 0.18), transparent 72%),
    radial-gradient(108% 50% at 78% 100%, rgba(27, 103, 179, 0.14), transparent 72%),
    var(--bg);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
}

.link-accent {
  color: var(--accent);
  font-weight: 600;
}

.link-accent:hover {
  color: var(--accent-strong);
}

section {
  padding: 72px 0;
}

.section-bg {
  background: linear-gradient(180deg, rgba(235, 241, 248, 0.92) 0%, rgba(220, 229, 240, 0.98) 100%);
}

.section-title {
  padding-bottom: 26px;
}

.section-title h2 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
}

.section-title h2::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  width: 90px;
  height: 4px;
  border-radius: 999px;
}

.section-title p {
  color: var(--muted);
  max-width: 840px;
}

#header {
  background:
    radial-gradient(118% 72% at 100% 0%, rgba(214, 121, 78, 0.22), transparent 42%),
    radial-gradient(100% 64% at 0% 100%, rgba(46, 160, 195, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(226, 234, 243, 0.99) 0%, rgba(207, 219, 234, 0.99) 100%);
  border-right: 1px solid rgba(15, 79, 141, 0.14);
  box-shadow: 16px 0 36px rgba(20, 31, 50, 0.12);
}

#header .profile img {
  border-color: rgba(31, 116, 201, 0.16);
  box-shadow: 0 12px 24px rgba(39, 61, 95, 0.1);
}

#header .profile h1 {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}

#header .profile h1 a,
#header .profile h1 a:hover {
  color: #081220;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  margin-top: 1rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(27, 103, 179, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #10263f;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(27, 103, 179, 0.28);
  color: var(--accent-strong);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 103, 179, 0.18);
}

#header .profile .social-links a {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(27, 103, 179, 0.14);
  color: var(--accent-strong);
}

#header .profile .social-links a:hover {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #ffffff;
}

.nav-menu a,
.nav-menu a:focus {
  color: #4f5d70;
}

.nav-menu a i,
.nav-menu a:focus i {
  color: #7488a3;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
  color: var(--text);
  background: linear-gradient(120deg, rgba(31, 116, 201, 0.1), rgba(240, 138, 93, 0.1));
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(31, 116, 201, 0.1);
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover > a i {
  color: var(--accent);
}

.mobile-nav-toggle {
  background-color: var(--accent);
  border: 0;
}

.mobile-nav-toggle i {
  font-size: 24px;
}

#hero:before {
  background: linear-gradient(
    115deg,
    rgba(10, 24, 44, 0.36) 18%,
    rgba(31, 116, 201, 0.18) 56%,
    rgba(240, 138, 93, 0.18) 100%
  );
}

#hero .hero-container {
  position: relative;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.72), rgba(232, 240, 249, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 24px;
  padding: 34px 36px;
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 56px rgba(16, 24, 40, 0.16);
  overflow: hidden;
}

#hero .hero-container::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
  color: #081220;
  text-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
}

#hero p {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: #1c3248;
}

#hero p span {
  color: #0f4f8d;
  border-bottom: 3px solid rgba(214, 121, 78, 0.9);
}

.about-copy {
  max-width: 980px;
  margin-bottom: 2.25rem;
}

.about-copy p {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
}

.about-copy p + p {
  margin-top: 1.05rem;
}

.about-actions {
  margin-top: 1.15rem;
}

.cv-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(20, 31, 50, 0.12);
}

.cv-link:hover {
  color: #ffffff;
  filter: brightness(0.98);
}

.about .content h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.experience-item:last-child {
  border-bottom: 0;
}

.experience-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.experience-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(127, 131, 211, 0.14), rgba(48, 185, 221, 0.16));
  border: 1px solid rgba(127, 131, 211, 0.18);
}

.experience-icon i {
  font-size: 1rem;
}

.experience-copy {
  min-width: 0;
}

.experience-role,
.experience-meta {
  margin: 0;
}

.experience-role {
  font-size: 1.03rem;
  color: var(--text);
  line-height: 1.35;
}

.experience-meta {
  color: var(--muted);
  line-height: 1.5;
}

.experience-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  min-width: 168px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f4f86;
  background: linear-gradient(120deg, rgba(238, 244, 255, 0.92), rgba(255, 239, 230, 0.9));
  border: 1px solid rgba(127, 131, 211, 0.24);
  text-align: center;
}

.news-list {
  --news-line-x: 1rem;
  --news-line-width: 2px;
  --news-dot-size: 1.35rem;
  list-style: none;
  position: relative;
  padding: 0.15rem 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.news-list::before {
  content: "";
  position: absolute;
  left: var(--news-line-x);
  top: 0.4rem;
  bottom: 0.4rem;
  width: var(--news-line-width);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0.85;
}

.news-list li {
  position: relative;
  padding-left: 3rem;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: calc(var(--news-line-x) + (var(--news-line-width) / 2) - (var(--news-dot-size) / 2));
  top: 0.92rem;
  width: var(--news-dot-size);
  height: var(--news-dot-size);
  box-sizing: border-box;
  border-radius: 50%;
  background: linear-gradient(135deg, #14c38e, #0fb4a1);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 16px rgba(20, 31, 50, 0.12);
  z-index: 1;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: start;
  column-gap: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 239, 247, 0.98));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.72rem 0.85rem 0.78rem;
  box-shadow: 0 8px 18px rgba(20, 31, 50, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-list li:hover .news-card {
  transform: translateY(-2px);
  border-color: rgba(31, 116, 201, 0.16);
  box-shadow: 0 16px 28px rgba(39, 61, 95, 0.08);
}

.news-date,
.news-copy {
  margin: 0;
}

.news-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  margin-bottom: 0;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #173d6a;
  background: linear-gradient(120deg, rgba(228, 237, 249, 0.96), rgba(248, 228, 216, 0.94));
  border: 1px solid rgba(191, 208, 226, 0.9);
  justify-self: end;
}

.news-copy {
  grid-column: 1;
  grid-row: 1;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.news-copy strong {
  color: #10263f;
}

.news-copy a {
  font-weight: 700;
}

.publications-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: -0.2rem 0 0.6rem;
}

.pub-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pub-filter:hover,
.pub-filter:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(27, 103, 179, 0.3);
  color: var(--accent-strong);
}

.pub-filter.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  border-color: transparent;
  color: #ffffff;
}

.publication-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.resume .post {
  display: grid !important;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 24px;
  margin-bottom: 24px !important;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  box-shadow: none;
  align-items: start !important;
  position: relative;
  overflow: visible;
}

.resume .post::before {
  display: none;
}

.resume .post:hover {
  transform: none;
  box-shadow: none;
}

.resume .post + br {
  display: none;
}

.resume .post.is-hidden {
  display: none !important;
}

.pub-media {
  max-width: 248px;
  flex: 0 0 248px;
  align-self: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(235, 241, 248, 0.96));
  border: 1px solid rgba(191, 208, 226, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.pub-media img,
.pub-media video {
  display: block;
  width: 100%;
  height: 126px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center center;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.pub-media-link {
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.02), rgba(8, 18, 32, 0.16));
  color: #ffffff;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.pub-media-link:hover,
.pub-media-link:focus-visible,
.pub-media:hover .pub-media-link {
  opacity: 1;
}

.pub-media-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.pub-media-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(8, 18, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(8, 18, 32, 0.18);
}

.pub-separator {
  display: none;
}

.pub-content {
  padding-left: 0;
}

.pub-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.32;
}

.pub-authors {
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.55;
}

.pub-venue {
  margin-bottom: 8px;
  color: #374151;
}

.pub-venue i {
  color: var(--accent);
  margin-right: 4px;
}

.pub-link {
  margin-right: 6px;
}

.pub-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 13px;
}

.pub-link a:hover {
  background: rgba(27, 103, 179, 0.08);
  color: var(--accent-strong);
}

.pub-abstract {
  margin-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 8px;
}

.pub-abstract summary {
  list-style: none;
}

.pub-abstract summary::-webkit-details-marker {
  display: none;
}

.pub-abstract-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0 2px;
  color: #5f6b7a;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pub-abstract-toggle:hover {
  color: var(--accent-strong);
}

.pub-abstract[open] .pub-abstract-toggle i {
  transform: rotate(180deg);
}

.pub-abstract-toggle i {
  transition: transform 0.2s ease;
}

.pub-abstract-body {
  padding-top: 8px;
}

.pub-abstract-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #445061;
}

.oral-badge {
  color: #c2410c;
  font-style: italic;
}

.contact .info {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 238, 246, 0.97));
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.contact .info i {
  color: var(--accent);
  background: var(--accent-soft);
}

.contact .info .email p {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}

#footer {
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(240, 138, 93, 0.18), transparent 42%),
    radial-gradient(95% 60% at 0% 100%, rgba(76, 183, 216, 0.14), transparent 50%),
    linear-gradient(160deg, #193154 0%, #22496e 100%);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.86);
}

.footer-row p {
  margin: 0;
}

.back-to-top {
  background: var(--accent);
}

.back-to-top:hover {
  background: var(--accent-strong);
}

body[data-theme="dark"] {
  --bg: #0b1320;
  --bg-alt: #101a2b;
  --surface: #132033;
  --text: #edf4ff;
  --muted: #a6b6cb;
  --accent: #70b7ff;
  --accent-strong: #96cbff;
  --accent-2: #f2a06b;
  --accent-3: #5fd0ea;
  --accent-soft: #17314e;
  --border: #2b425d;
  --shadow-soft: 0 24px 54px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] {
  color-scheme: dark;
  background:
    radial-gradient(64% 34% at 8% 0%, rgba(242, 160, 107, 0.16), transparent 70%),
    radial-gradient(84% 42% at 85% 8%, rgba(95, 208, 234, 0.14), transparent 72%),
    radial-gradient(92% 44% at 15% 100%, rgba(112, 183, 255, 0.12), transparent 72%),
    radial-gradient(108% 50% at 78% 100%, rgba(53, 101, 179, 0.14), transparent 72%),
    var(--bg);
}

body[data-theme="dark"] .section-bg {
  background: linear-gradient(180deg, rgba(13, 22, 36, 0.92) 0%, rgba(16, 26, 43, 0.98) 100%);
}

body[data-theme="dark"] #header {
  background:
    radial-gradient(118% 72% at 100% 0%, rgba(242, 160, 107, 0.16), transparent 42%),
    radial-gradient(100% 64% at 0% 100%, rgba(95, 208, 234, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(11, 19, 32, 0.99) 0%, rgba(15, 25, 42, 0.99) 100%);
  border-right-color: rgba(112, 183, 255, 0.16);
  box-shadow: 16px 0 36px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] #header .profile h1 a,
body[data-theme="dark"] #header .profile h1 a:hover,
body[data-theme="dark"] #hero h1,
body[data-theme="dark"] .news-copy strong {
  color: #f5f9ff;
}

body[data-theme="dark"] #header .profile .social-links a,
body[data-theme="dark"] .theme-toggle {
  background: rgba(17, 31, 49, 0.9);
  border-color: rgba(112, 183, 255, 0.18);
  color: #dcecff;
}

body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body[data-theme="dark"] #header .profile .social-links a:hover {
  background: linear-gradient(120deg, rgba(112, 183, 255, 0.22), rgba(95, 208, 234, 0.2));
  color: #ffffff;
}

body[data-theme="dark"] .nav-menu a,
body[data-theme="dark"] .nav-menu a:focus {
  color: #b4c3d8;
}

body[data-theme="dark"] .nav-menu a i,
body[data-theme="dark"] .nav-menu a:focus i {
  color: #7f98b8;
}

body[data-theme="dark"] .nav-menu a:hover,
body[data-theme="dark"] .nav-menu .active,
body[data-theme="dark"] .nav-menu .active:focus,
body[data-theme="dark"] .nav-menu li:hover > a {
  color: #f4f8ff;
  background: linear-gradient(120deg, rgba(112, 183, 255, 0.16), rgba(242, 160, 107, 0.16));
  box-shadow: inset 0 0 0 1px rgba(112, 183, 255, 0.14);
}

body[data-theme="dark"] #hero:before {
  background: linear-gradient(
    115deg,
    rgba(3, 8, 16, 0.6) 18%,
    rgba(74, 136, 218, 0.18) 56%,
    rgba(242, 160, 107, 0.18) 100%
  );
}

body[data-theme="dark"] #hero .hero-container,
body[data-theme="dark"] .news-card,
body[data-theme="dark"] .contact .info {
  background: linear-gradient(180deg, rgba(18, 30, 48, 0.98), rgba(12, 22, 36, 0.97));
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .resume .post,
body[data-theme="dark"] .experience-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .pub-media {
  background: linear-gradient(180deg, rgba(19, 32, 51, 0.98), rgba(14, 24, 39, 0.96));
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .pub-media img,
body[data-theme="dark"] .pub-media video {
  background: rgba(7, 15, 25, 0.8);
}

body[data-theme="dark"] #hero p {
  color: #c5d7ec;
}

body[data-theme="dark"] #hero p span {
  color: #a9d6ff;
  border-bottom-color: rgba(242, 160, 107, 0.9);
}

body[data-theme="dark"] .experience-date,
body[data-theme="dark"] .news-date,
body[data-theme="dark"] .pub-link a {
  background: linear-gradient(120deg, rgba(20, 45, 73, 0.96), rgba(36, 56, 80, 0.94));
  border-color: rgba(95, 132, 175, 0.45);
  color: #dcecff;
}

body[data-theme="dark"] .pub-link a:hover {
  background: linear-gradient(120deg, rgba(112, 183, 255, 0.18), rgba(242, 160, 107, 0.16));
  color: #ffffff;
}

body[data-theme="dark"] .pub-venue,
body[data-theme="dark"] .pub-abstract-body p,
body[data-theme="dark"] .pub-abstract-toggle,
body[data-theme="dark"] .contact .info .email p {
  color: #b5c5da;
}

body[data-theme="dark"] .pub-abstract {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .mobile-nav-toggle,
body[data-theme="dark"] .back-to-top {
  background: linear-gradient(180deg, #4d90d6, #3271bb);
}

body[data-theme="dark"] #footer {
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(242, 160, 107, 0.16), transparent 42%),
    radial-gradient(95% 60% at 0% 100%, rgba(95, 208, 234, 0.12), transparent 50%),
    linear-gradient(160deg, #08111d 0%, #0d1a2c 100%);
}

@media (max-width: 991px) {
  .resume .post {
    display: block !important;
    padding: 0 0 20px;
  }

  .pub-media {
    max-width: 100%;
    flex: 0 1 auto;
    align-self: auto;
    margin-right: 0 !important;
    margin-bottom: 14px;
  }

  .pub-content {
    padding-left: 0;
  }

  .experience-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-date {
    margin-left: 56px;
  }
}

@media (max-width: 768px) {
  #hero .hero-container {
    min-width: 0;
    width: calc(100% - 30px);
    margin: 0 15px;
    padding: 22px;
  }

  #hero p {
    font-size: 1.1rem;
  }

  .news-list li {
    padding-left: 2.65rem;
  }

  .news-list {
    --news-line-x: 0.82rem;
    --news-dot-size: 1.2rem;
  }

  .news-list li::before {
    top: 0.84rem;
  }

  .news-card {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
    padding: 0.78rem 0.82rem 0.82rem;
  }

  .news-date {
    justify-content: flex-start;
  }

  .experience-item {
    padding: 12px 0;
  }

  .experience-main {
    gap: 12px;
  }

  .experience-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .experience-date {
    margin-left: 50px;
    white-space: normal;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
