@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=Noto+Sans:wght@400;500;600;700;800;900&display=swap');

/* Home redesign. Keep this file separate: /assets/css/home-redesign.css */
.eg-home {
  --eg-bg: #090b10;
  --eg-bg-2: #0f121a;
  --eg-card: rgba(255, 255, 255, 0.055);
  --eg-card-2: rgba(255, 255, 255, 0.085);
  --eg-border: rgba(255, 255, 255, 0.13);
  --eg-border-strong: rgba(240, 255, 173, 0.36);
  --eg-text: #f7f7f2;
  --eg-muted: #b8bfca;
  --eg-accent: #f0ffad;
  --eg-red: #d42e3c;
  --eg-radius: 28px;
  --eg-radius-sm: 18px;
  --eg-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  background: var(--eg-bg);
  color: var(--eg-text);
  overflow: hidden;
  font-family: "Manrope", "Noto Sans", "Segoe UI", Arial, sans-serif !important;
}

.eg-home *,
.eg-home *::before,
.eg-home *::after {
  box-sizing: border-box;
  font-family: "Manrope", "Noto Sans", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: normal;
}

.eg-home a {
  color: inherit;
  text-decoration: none;
}

.eg-home img {
  display: block;
  max-width: 100%;
}

.eg-home p,
.eg-home li {
  color: var(--eg-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  text-shadow: none;
}

/* Optional navbar/footer font support only when this home CSS is loaded */
.navbar,
.navbar .nav-link,
.logo,
footer,
footer * {
  font-family: "Manrope", "Noto Sans", "Segoe UI", Arial, sans-serif !important;
}

.eg-hero {
  position: relative;
  min-height: 100vh;
  padding: 126px 0 62px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 14%, rgba(240, 255, 173, 0.14), transparent 32%),
    radial-gradient(circle at 16% 76%, rgba(212, 46, 60, 0.18), transparent 34%),
    var(--eg-bg);
}

.eg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), transparent 88%);
  pointer-events: none;
}

.eg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.eg-orb--one {
  right: -160px;
  top: 80px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(240, 255, 173, .19), transparent 66%);
}

.eg-orb--two {
  left: -160px;
  bottom: 0;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 46, 60, .2), transparent 68%);
}

.eg-hero-row,
.eg-hero-stats,
.eg-hero-content,
.eg-hero-panel {
  position: relative;
  z-index: 2;
}

.eg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--eg-accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .17em !important;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eg-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--eg-accent);
  border-radius: 999px;
}

.eg-hero-title {
  margin: 0 0 24px;
  color: var(--eg-text);
  font-size: clamp(48px, 7.6vw, 96px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -0.055em !important;
}

.eg-hero-title span {
  display: block;
  margin-top: 14px;
  max-width: 780px;
  color: var(--eg-accent);
  font-size: clamp(29px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.045em !important;
}

.eg-hero-text {
  max-width: 700px;
  margin-bottom: 32px !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
}

.eg-hero-actions,
.eg-center-link {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.eg-btn,
.eg-center-link a,
.eg-project-content a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 23px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  overflow: hidden;
}

.eg-btn span {
  position: static !important;
  transform: none !important;
  transition: none !important;
}

.eg-btn::before,
.eg-btn::after {
  display: none !important;
}

.eg-btn--primary,
.eg-center-link a,
.eg-project-content a {
  background: var(--eg-accent);
  color: #080a0f !important;
  border: 1px solid var(--eg-accent);
}

.eg-btn--ghost {
  color: var(--eg-text) !important;
  border: 1px solid var(--eg-border-strong);
  background: rgba(255,255,255,.04);
}

.eg-btn:hover,
.eg-center-link a:hover,
.eg-project-content a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(240, 255, 173, .13);
}

.eg-hero-panel {
  max-width: 420px;
  margin-left: auto;
  padding: 14px;
  border: 1px solid var(--eg-border);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  box-shadow: var(--eg-shadow);
}

.eg-hero-image {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 4 / 5;
  background: #161923;
}

.eg-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-hero-panel-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 4px 2px;
}

.eg-hero-panel-info div {
  padding: 14px;
  border: 1px solid var(--eg-border);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.eg-hero-panel-info span,
.eg-hero-stats span {
  display: block;
  color: var(--eg-muted);
  font-size: 12px;
  line-height: 1.45;
}

.eg-hero-panel-info strong,
.eg-hero-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--eg-accent);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.eg-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.eg-hero-stats article,
.eg-timeline-card,
.eg-education-card,
.eg-reference-card,
.eg-about-copy,
.eg-mini-cards article,
.eg-skill-card,
.eg-certificate-card,
.eg-results-grid article,
.eg-project-card,
.eg-blog-card {
  border: 1px solid var(--eg-border);
  background: var(--eg-card);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 54px rgba(0,0,0,.18);
}

.eg-hero-stats article {
  padding: 20px;
  border-radius: var(--eg-radius-sm);
}

.eg-section {
  position: relative;
  padding: 105px 0;
  background: var(--eg-bg);
}

.eg-section--dark {
  background: linear-gradient(180deg, #07080c 0%, #10131a 100%);
}

.eg-section-head {
  margin-bottom: 42px;
}

.eg-section-head--center {
  text-align: center;
}

.eg-section-head--center .eg-kicker {
  justify-content: center;
}

.eg-section-head h2 {
  margin: 0;
  color: var(--eg-text) !important;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  -webkit-text-stroke: 0 !important;
}

.eg-section-head--sub {
  margin-top: 78px;
}

.eg-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.eg-timeline-card {
  position: relative;
  padding: 26px;
  border-radius: var(--eg-radius);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

.eg-timeline-card::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -1px;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--eg-accent), var(--eg-red));
}

.eg-timeline-card:hover,
.eg-education-card:hover,
.eg-skill-card:hover,
.eg-results-grid article:hover,
.eg-project-card:hover,
.eg-blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--eg-border-strong);
}

.eg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.eg-card-top div {
  min-width: 0;
  flex: 1 1 260px;
}

.eg-card-top h3,
.eg-education-card h3,
.eg-reference-card h3,
.eg-about-copy h2,
.eg-skill-card h3,
.eg-certificate-card h3,
.eg-results-grid strong,
.eg-project-content h3,
.eg-blog-content h3 {
  margin: 0;
  color: var(--eg-text) !important;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em !important;
}

.eg-card-top p {
  margin-top: 7px !important;
  color: var(--eg-muted);
  font-weight: 700;
}

.eg-card-top > span,
.eg-education-card span {
  display: inline-flex;
  max-width: 210px;
  color: var(--eg-accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.eg-timeline-card ul,
.eg-project-content ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.eg-timeline-card li,
.eg-project-content li {
  margin-bottom: 8px;
}

.eg-timeline-card li::marker,
.eg-project-content li::marker {
  color: var(--eg-accent);
}

.eg-education-grid,
.eg-skills-grid,
.eg-results-grid {
  display: grid;
  gap: 18px;
}

.eg-education-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eg-education-card {
  padding: 22px;
  border-radius: var(--eg-radius-sm);
  transition: transform .25s ease, border-color .25s ease;
}

.eg-education-card p {
  margin: 9px 0 13px !important;
}

.eg-swiper {
  width: min(1180px, 92vw);
  overflow: hidden;
  padding: 6px 0 16px;
}

.eg-reference-card {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--eg-radius);
  background: #10141d;
}

.eg-reference-card img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  filter: saturate(.9) brightness(.92);
}

.eg-reference-card div {
  padding: 22px;
  text-align: left;
}

.eg-reference-card h3 {
  margin-top: 10px;
}

.eg-reference-card h3 a:hover {
  color: var(--eg-accent) !important;
}

.eg-about-copy {
  padding: 30px;
  border-radius: var(--eg-radius);
}

.eg-about-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 40px);
}

.eg-about-copy p + p {
  margin-top: 16px;
}

.eg-about-photo {
  overflow: hidden;
  border: 1px solid var(--eg-border-strong);
  border-radius: 34px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--eg-shadow);
}

.eg-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-mini-cards {
  display: grid;
  gap: 14px;
}

.eg-mini-cards article {
  padding: 20px;
  border-radius: var(--eg-radius-sm);
}

.eg-mini-cards strong {
  display: block;
  color: var(--eg-accent);
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.eg-mini-cards span {
  display: block;
  color: var(--eg-muted);
  line-height: 1.7;
}

.eg-skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eg-skill-card {
  padding: 24px;
  border-radius: var(--eg-radius-sm);
  transition: transform .25s ease, border-color .25s ease;
}

.eg-skill-card h3 {
  color: var(--eg-accent) !important;
  margin-bottom: 12px;
}

.eg-certificate-card {
  width: 100%;
  min-height: 450px;
  padding: 18px;
  border-radius: var(--eg-radius);
  text-align: center;
  background: #10141d;
}

.eg-certificate-card a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
}

.eg-certificate-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  transition: transform .25s ease;
}

.eg-certificate-card:hover img {
  transform: scale(1.035);
}

.eg-certificate-card h3 {
  margin-top: 18px;
  color: var(--eg-accent) !important;
}

.eg-certificate-card p {
  margin-top: 8px !important;
}

.eg-language-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 450px;
}

.eg-language-card ul {
  margin: 22px 0 0;
  padding: 0;
}

.eg-language-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--eg-border);
}

.eg-language-card strong {
  color: var(--eg-text);
}

.eg-language-card span {
  color: var(--eg-accent);
  font-weight: 900;
}

.eg-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.eg-results-grid article {
  padding: 24px;
  border-radius: var(--eg-radius-sm);
  transition: transform .25s ease, border-color .25s ease;
}

.eg-results-grid span {
  display: block;
  color: var(--eg-accent);
  font-weight: 900;
  margin-bottom: 8px;
}

.eg-results-grid strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.eg-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.eg-project-card {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--eg-radius);
  background: #05070b;
  transition: transform .25s ease, border-color .25s ease;
}

.eg-project-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.58);
  transition: transform .35s ease, filter .35s ease;
  z-index: 0;
}

.eg-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3,5,9,.12) 0%, rgba(3,5,9,.50) 48%, rgba(3,5,9,.96) 100%);
  transition: background .25s ease, backdrop-filter .25s ease;
}

.eg-project-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 30px;
}

.eg-project-content h3 {
  color: #fff !important;
  font-size: clamp(22px, 2.35vw, 30px);
  line-height: 1.15;
  text-shadow: 0 8px 24px rgba(0,0,0,.6);
}

.eg-project-content p,
.eg-project-content ul,
.eg-project-content a {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease;
}

.eg-project-content p,
.eg-project-content ul {
  max-height: 0;
  overflow: hidden;
  margin-top: 0 !important;
  color: #f0f2f7 !important;
}

.eg-project-content li {
  color: #f0f2f7 !important;
}

.eg-project-content a {
  pointer-events: none;
  margin-top: 16px;
  min-height: 42px;
  padding: 10px 18px;
}

.eg-project-card:hover::after {
  background: rgba(3,5,9,.88);
  backdrop-filter: blur(2px);
}

.eg-project-card:hover > img {
  transform: scale(1.06);
  filter: saturate(.75) brightness(.42);
}

.eg-project-card:hover .eg-project-content p,
.eg-project-card:hover .eg-project-content ul,
.eg-project-card:hover .eg-project-content a {
  opacity: 1;
  transform: translateY(0);
}

.eg-project-card:hover .eg-project-content p,
.eg-project-card:hover .eg-project-content ul {
  max-height: 260px;
  margin-top: 13px !important;
}

.eg-project-card:hover .eg-project-content a {
  pointer-events: auto;
}

.eg-center-link {
  justify-content: center;
  margin-top: 42px;
}

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

.eg-blog-card {
  overflow: hidden;
  border-radius: var(--eg-radius);
  background: #10141d;
  transition: transform .25s ease, border-color .25s ease;
}

.eg-blog-card a {
  display: block;
  height: 100%;
}

.eg-blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.eg-blog-content {
  padding: 22px;
}

.eg-blog-content h3 {
  margin-bottom: 10px;
}

.eg-blog-card:hover h3 {
  color: var(--eg-accent) !important;
}

@media (max-width: 1199px) {
  .eg-skills-grid,
  .eg-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .eg-hero {
    min-height: auto;
    padding: 144px 0 82px;
  }

  .eg-section {
    padding: 78px 0;
  }

  .eg-hero-stats,
  .eg-timeline,
  .eg-education-grid,
  .eg-skills-grid,
  .eg-results-grid,
  .eg-portfolio-grid,
  .eg-blog-grid {
    grid-template-columns: 1fr;
  }

  .eg-section-head--sub {
    margin-top: 58px;
  }
}

@media (max-width: 767px) {
  .eg-project-card {
    min-height: 540px;
  }

  .eg-project-card::after {
    background: rgba(3,5,9,.88);
    backdrop-filter: blur(1px);
  }

  .eg-project-card > img {
    filter: saturate(.75) brightness(.44);
  }

  .eg-project-content p,
  .eg-project-content ul,
  .eg-project-content a {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .eg-project-content p,
  .eg-project-content ul {
    max-height: none;
    margin-top: 12px !important;
  }
}

@media (max-width: 575px) {
  .eg-hero {
    padding-top: 132px;
  }

  .eg-hero-title {
    font-size: 42px;
    letter-spacing: -0.04em !important;
  }

  .eg-hero-title span {
    font-size: 28px;
  }

  .eg-hero-text {
    font-size: 16px !important;
  }

  .eg-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .eg-btn,
  .eg-center-link a {
    width: 100%;
    max-width: 290px;
    margin-inline: auto;
    transform: none !important;
  }

  .eg-btn:hover,
  .eg-btn:focus,
  .eg-btn:active,
  .eg-center-link a:hover,
  .eg-center-link a:focus,
  .eg-center-link a:active {
    transform: none !important;
    box-shadow: none !important;
  }

  .eg-section-head h2 {
    font-size: 34px;
  }

  .eg-timeline-card,
  .eg-education-card,
  .eg-about-copy,
  .eg-skill-card,
  .eg-results-grid article,
  .eg-project-content,
  .eg-blog-content {
    padding: 20px;
  }

  .eg-card-top {
    flex-direction: column;
  }

  .eg-card-top div {
    flex-basis: auto;
  }

  .eg-card-top > span,
  .eg-education-card span {
    max-width: 100%;
    text-align: left;
  }

  .eg-reference-card,
  .eg-certificate-card,
  .eg-language-card {
    min-height: auto;
  }

  .eg-reference-card img,
  .eg-certificate-card img {
    height: 240px;
  }

  .eg-project-card {
    min-height: 610px;
  }
}

/* v5 fixes: requested layout/content corrections */
.eg-hero-stats--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.eg-hero-image img,
.eg-about-photo img,
.eg-reference-card img,
.eg-project-card > img {
  object-position: center top;
}

.eg-cert-layout {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.eg-cert-layout .eg-swiper {
  width: 100%;
  min-width: 0;
  padding: 0 0 16px;
}

.eg-language-panel {
  border: 1px solid var(--eg-border);
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 54px rgba(0,0,0,.18);
  border-radius: var(--eg-radius);
  padding: 30px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eg-language-panel .eg-kicker {
  margin-bottom: 14px;
}

.eg-language-panel h3 {
  margin: 0 0 22px;
  color: var(--eg-accent) !important;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em !important;
}

.eg-language-panel ul {
  margin: 0;
  padding: 0;
}

.eg-language-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--eg-border);
}

.eg-language-panel li:last-child {
  border-bottom: 0;
}

.eg-language-panel strong {
  color: var(--eg-text);
  font-size: 15px;
  font-weight: 900;
}

.eg-language-panel li span {
  color: var(--eg-accent);
  font-weight: 900;
}

.eg-certificate-card {
  min-height: 450px;
}

.eg-certificate-card a {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-certificate-card img {
  height: 280px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

@media (max-width: 991px) {
  .eg-hero-panel {
    max-width: 440px;
    margin: 24px auto 0;
  }

  .eg-hero-image {
    aspect-ratio: 4 / 4.7;
  }

  .eg-hero-stats--two,
  .eg-cert-layout {
    grid-template-columns: 1fr;
  }

  .eg-language-panel {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .eg-hero-panel {
    padding: 10px;
    border-radius: 28px;
  }

  .eg-hero-image {
    border-radius: 22px;
    aspect-ratio: 4 / 4.6;
  }

  .eg-hero-panel-info {
    grid-template-columns: 1fr;
  }

  .eg-cert-layout {
    width: min(100%, calc(100vw - 28px));
    gap: 18px;
  }

  .eg-language-panel {
    padding: 22px;
  }

  .eg-certificate-card a {
    min-height: 220px;
  }

  .eg-certificate-card img {
    height: 220px;
  }
}

/* keep old slider-language class harmless if cached HTML contains it */
.eg-language-card {
  min-height: auto;
}

/* v6 fixes: certificates separate, languages moved to About, mobile images */
.eg-about-languages ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.eg-about-languages li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--eg-border);
}

.eg-about-languages li:last-child {
  border-bottom: 0;
}

.eg-about-languages li span {
  color: var(--eg-muted);
  line-height: 1.45;
}

.eg-about-languages li b {
  color: var(--eg-accent);
  font-weight: 900;
}

.eg-certificate-swiper {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0 0 18px;
  overflow: hidden;
}

.eg-certificates .swiper-wrapper {
  align-items: stretch;
}

.eg-certificates .swiper-slide {
  height: auto;
}

.eg-certificate-card {
  min-height: 430px;
  height: 100%;
}

.eg-certificate-card a {
  min-height: 260px;
  height: 260px;
}

.eg-certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.eg-hero-image,
.eg-about-photo {
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.eg-hero-image img,
.eg-about-photo img {
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 991px) {
  .eg-about-photo {
    width: min(360px, 100%);
    margin: 0 auto;
    aspect-ratio: 4 / 4.7;
  }

  .eg-mini-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-certificate-swiper {
    width: min(100%, calc(100vw - 28px));
  }
}

@media (max-width: 575px) {
  .eg-hero-image {
    aspect-ratio: 4 / 4.4;
    max-height: 430px;
  }

  .eg-about-photo {
    aspect-ratio: 4 / 4.4;
    max-height: 420px;
  }

  .eg-mini-cards {
    grid-template-columns: 1fr;
  }

  .eg-certificate-card {
    min-height: auto;
    padding: 16px;
  }

  .eg-certificate-card a {
    height: 230px;
    min-height: 230px;
  }

  .eg-certificate-card h3 {
    font-size: 21px;
  }
}
