html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.education-page {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.education-page main,
.education-page section,
.education-page .dm-footer {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Keep all written education content visible even when shared animation
   styles or browser preview states are applied. */
.education-detail-page main section,
.education-detail-page main .edu-section__heading,
.education-detail-page main .professional-heading,
.education-detail-page main .formal-card,
.education-detail-page main .edu-path__content,
.education-detail-page main .credential-card,
.education-detail-page main .skill-card,
.education-detail-page main .competency-block,
.education-detail-page main :is(h1, h2, h3, h4, h5, h6, p, a, strong, small),
.education-detail-page main span:not([aria-hidden="true"]) {
  opacity: 1 !important;
  visibility: visible !important;
}

.education-detail-page #certifications,
.education-detail-page #skills {
  display: block !important;
  height: auto !important;
  min-height: 1px;
  overflow-y: visible !important;
}

.education-detail-page #certifications .edu-section__heading,
.education-detail-page #skills .edu-section__heading {
  display: grid !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.education-detail-page #certifications .edu-section__heading :is(h2, p, .sect-tag),
.education-detail-page #skills .edu-section__heading :is(h2, p, .sect-tag),
.education-detail-page #skills .competency-block,
.education-detail-page #skills .competency-block :is(p, span) {
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: currentColor !important;
}

.education-detail-page #certifications .edu-section__heading h2,
.education-detail-page #skills .edu-section__heading h2 {
  color: var(--black-72) !important;
}

.education-detail-page #certifications .edu-section__heading > p,
.education-detail-page #skills .edu-section__heading > p,
.education-detail-page #skills .competency-block :is(p, span) {
  color: var(--black-56) !important;
}

.education-detail-page #skills .competency-list {
  display: flex !important;
  flex-wrap: wrap;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.edu-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.edu-header {
  position: fixed;
  z-index: 90;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 48px));
  min-height: 58px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .38));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12),
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 0 0 1px rgba(0, 0, 0, .035);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}

.edu-header__logo,
.edu-header__contact {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--white);
  transition: background-color .25s ease, transform .25s ease;
}

.edu-header__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.edu-header__contact svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.edu-header__logo:hover,
.edu-header__logo:focus-visible,
.edu-header__contact:hover,
.edu-header__contact:focus-visible {
  background: var(--primary);
  transform: rotate(-8deg);
}

.edu-header__nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.edu-header__nav a {
  color: var(--black-72);
  font-size: 13px;
  font-weight: 500;
  transition: color .25s ease;
}

.edu-header__nav a:hover,
.edu-header__nav a:focus-visible {
  color: #009d3a;
}

.edu-header__email {
  min-height: 44px;
  padding: 0 17px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #061009;
  background: var(--primary);
  font-size: 11px;
  font-weight: 600;
  transition: background-color .25s ease, color .25s ease;
}

.edu-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.edu-header__email .icon {
  display: none;
}

.edu-header__email:hover,
.edu-header__email:focus-visible {
  color: var(--black);
  background: var(--white);
}

.edu-hero {
  position: relative;
  padding: 180px 0 38px;
}

.edu-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  top: 105px;
  right: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 222, 81, .2), transparent 68%);
  filter: blur(6px);
}

.edu-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  gap: 72px;
  align-items: end;
}

.edu-title {
  margin-top: 26px;
  font-size: clamp(54px, 7.2vw, 104px);
  line-height: .94;
}

.edu-hero__aside {
  padding-bottom: 8px;
}

.edu-hero__aside p {
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.6;
}

.edu-metrics {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--black-6);
}

.edu-metrics article {
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.edu-metrics article + article {
  border-left: 1px solid var(--black-6);
}

.edu-metrics strong {
  color: var(--black-72);
  font-size: 30px;
  line-height: 1;
}

.edu-metrics span {
  max-width: 130px;
  color: var(--black-50);
  font-size: 11px;
  line-height: 1.35;
}

.edu-section {
  padding: 58px 0;
}

.edu-section--surface {
  background: rgba(255, 255, 255, .34);
  border-block: 1px solid var(--black-6);
}

.edu-section__heading {
  max-width: 790px;
  margin-bottom: 34px;
}

#education .edu-section__heading,
#education .edu-section__heading .sect-tag,
#education .edu-section__heading h2,
#education .edu-section__heading > p,
#certifications .edu-section__heading,
#certifications .edu-section__heading .sect-tag,
#certifications .edu-section__heading h2,
#certifications .edu-section__heading > p,
#skills .edu-section__heading,
#skills .edu-section__heading .sect-tag,
#skills .edu-section__heading h2,
#skills .edu-section__heading > p {
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
}

#education .edu-section__heading .sect-tag,
#certifications .edu-section__heading .sect-tag,
#skills .edu-section__heading .sect-tag {
  display: inline-flex;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  line-height: 1;
}

#education .edu-section__heading h2,
#certifications .edu-section__heading h2,
#skills .edu-section__heading h2 {
  display: block;
  margin-top: 10px;
}

#education .formal-card h3,
#education .formal-card p,
#education .formal-card__type,
#education .professional-heading h3,
#education .professional-heading p,
#education .edu-path__year,
#education .edu-path__content h3,
#education .edu-path__content p,
#certifications .credential-card > span,
#certifications .credential-card h3,
#certifications .credential-card p,
#certifications .credential-verify,
#skills .skill-card__head h3,
#skills .skill-card__head p,
#skills .skill-count,
#skills .competency-block .edu-kicker,
#skills .competency-list span {
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}

.edu-section__heading h2 {
  margin-top: 22px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

.edu-section__heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .55fr);
  gap: 70px;
  align-items: end;
}

.edu-section__heading--split > p {
  margin: 0 0 5px;
  line-height: 1.55;
}

.edu-panel {
  border: 1px solid var(--black-6);
  border-radius: 20px;
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.formal-training {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.formal-card {
  position: relative;
  min-height: 210px;
  padding: 28px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  overflow: hidden;
}

.formal-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -72px;
  bottom: -82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 222, 81, .2), transparent 70%);
}

.formal-card__mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #061009;
  background: var(--white);
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.formal-card__mark img {
  width: 100%;
  height: 100%;
  padding: 4px;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.formal-card__content h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.formal-card__content > p:last-child {
  margin: 0;
  font-size: 13px;
}

.formal-card__type {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--black-40);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.professional-heading {
  max-width: 650px;
  margin: 0 0 34px 166px;
}

.professional-heading h3 {
  font-size: 30px;
  line-height: 1.08;
}

.edu-path__item {
  display: grid;
  grid-template-columns: 118px 24px minmax(0, 1fr);
  gap: 24px;
}

.edu-path__item + .edu-path__item {
  margin-top: 20px;
}

.edu-path__year {
  padding-top: 27px;
  color: var(--black-56);
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

.edu-path__line {
  position: relative;
  display: flex;
  justify-content: center;
}

.edu-path__line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -20px;
  width: 1px;
  background: var(--black-15);
}

.edu-path__item:last-child .edu-path__line::before {
  bottom: 50%;
}

.edu-path__line span {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 31px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--black-15);
}

.edu-path__content {
  min-height: 190px;
  padding: 28px 30px;
}

.edu-path__content img {
  margin-bottom: 23px;
  object-fit: contain;
  object-position: left center;
}

.edu-kicker {
  margin-bottom: 9px;
  color: var(--black-50);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.edu-path__content h3,
.credential-card h3,
.skill-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.edu-path__content > p:last-child,
.credential-card p {
  margin: 0;
  line-height: 1.55;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credential-card {
  min-height: 310px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .3s ease, border-color .3s ease;
}

.credential-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 222, 81, .48);
}

.credential-card > span {
  margin-bottom: auto;
  color: var(--black-50);
  font-family: monospace;
  font-size: 10px;
}

.credential-verify {
  width: max-content;
  max-width: 100%;
  margin-top: 20px;
}

.credential-verify .text {
  padding-inline: 14px;
  white-space: nowrap;
  font-size: 10px;
}

.credential-card--accent {
  color: #061009;
  border-color: transparent;
  background: var(--primary);
}

.credential-card--accent h3,
.credential-card--accent p,
.credential-card--accent > span {
  color: #061009;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 28px;
}

.skill-card__head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--black-6);
}

.skill-card__head img {
  border-radius: 10px;
  object-fit: cover;
}

.skill-card__head div {
  min-width: 0;
}

.skill-card__head p {
  margin: 0;
  color: var(--black-50);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.skill-card__head h3 {
  margin: 2px 0 0;
}

.skill-count {
  margin-left: auto;
  padding: 6px 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--black-56);
  background: var(--black-6);
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.skill-items {
  padding-top: 24px;
  display: grid;
  gap: 18px;
}

.skill-item > div:first-child {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--black-72);
  font-size: 12px;
}

.skill-item strong {
  color: var(--black-50);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
}

.skill-meter {
  height: 5px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--black-6);
}

.skill-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.competency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.competency-list span {
  padding: 7px 10px;
  color: var(--black-56);
  border: 1px solid var(--black-6);
  border-radius: 999px;
  background: var(--white-40);
  font-size: 10px;
  line-height: 1;
}

.competency-block {
  margin-top: 16px;
  padding: 30px;
}

.competency-block .edu-kicker {
  margin-bottom: 18px;
}

.skills-endorsement {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.skills-endorsement__button {
  padding: 0;
  border: 0;
  background: transparent;
}

.skills-endorsement__button .text {
  padding-inline: 24px;
}

.edu-cta {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 74px 0;
  color: var(--white);
  background: #070a08;
}

.edu-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.edu-cta .edu-kicker,
.edu-cta h2 {
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}

.edu-cta .edu-kicker {
  color: var(--white-56);
}

.edu-cta h2 {
  max-width: 710px;
  color: var(--white);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
}

.dark-mode .edu-panel,
.dark-mode .edu-section--surface {
  border-color: var(--white-8);
  background: rgba(255, 255, 255, .045);
}

.dark-mode .credential-card--accent {
  background: var(--primary);
}

.dark-mode .competency-list span {
  border-color: var(--white-8);
  background: rgba(255, 255, 255, .04);
}

@media (max-width: 991px) {
  .edu-header__nav {
    gap: 12px;
  }
  .edu-hero__grid,
  .edu-section__heading--split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .edu-hero__aside {
    max-width: 540px;
  }
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .edu-shell {
    width: min(1120px, calc(100% - 30px));
  }
  .edu-header {
    top: 10px;
    left: 15px;
    right: 15px;
    transform: none;
    width: auto;
    max-width: none;
    min-height: 52px;
    padding: 5px;
    gap: 6px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .edu-header__nav {
    margin-inline: auto;
    gap: clamp(8px, 3vw, 14px);
  }
  .edu-header__nav a {
    font-size: 9px;
  }
  .edu-header__nav a:nth-child(4) {
    display: inline-flex;
  }
  .edu-header__logo,
  .edu-header__contact,
  .edu-header__email {
    width: 40px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    padding: 0;
  }
  .edu-header__email span {
    display: none;
  }
  .edu-header__email .icon {
    display: block;
    font-size: 16px;
  }
  .edu-header__email {
    display: none;
  }
  .edu-hero {
    padding: 126px 0 30px;
  }
  .edu-title {
    max-width: 100%;
    font-size: clamp(42px, 12.5vw, 60px);
    overflow-wrap: break-word;
  }
  .edu-metrics {
    margin-top: 38px;
    grid-template-columns: 1fr;
  }
  .edu-metrics article {
    padding: 18px 2px;
  }
  .edu-metrics article + article {
    border-left: 0;
    border-top: 1px solid var(--black-6);
  }
  .edu-section {
    padding: 46px 0;
  }
  .edu-section__heading {
    margin-bottom: 28px;
  }
  .edu-section__heading h2 {
    font-size: clamp(36px, 11vw, 54px);
  }
  .formal-training {
    margin-bottom: 38px;
    grid-template-columns: 1fr;
  }
  .formal-card {
    min-height: 190px;
    padding: 24px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }
  .formal-card__mark {
    width: 56px;
    height: 56px;
    font-size: 10px;
  }
  .formal-card__content h3 {
    padding-right: 8px;
    font-size: 19px;
  }
  .formal-card__type {
    top: 14px;
    right: 16px;
  }
  .professional-heading {
    margin: 0 0 28px;
  }
  .professional-heading h3 {
    font-size: 26px;
  }
  .edu-path__item {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .edu-path__item + .edu-path__item {
    margin-top: 28px;
  }
  .edu-path__year {
    padding-top: 0;
  }
  .edu-path__line {
    display: none;
  }
  .edu-path__content {
    padding: 24px;
  }
  .credential-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }
  .skill-card:last-child {
    grid-column: auto;
  }
  .skill-card {
    padding: 22px;
  }
  .skill-card__head {
    align-items: flex-start;
  }
  .skill-count {
    padding-inline: 7px;
  }
  .credential-card {
    min-height: 190px;
  }
  .edu-cta {
    padding: 58px 0;
  }
  .edu-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credential-card,
  .edu-header__nav a {
    transition: none;
  }
}
