.page-profile .image a,
.page-profile-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.page-profile-icon {
  box-sizing: border-box;
  border-radius: inherit;
  background: linear-gradient(135deg, #0d3458, #087f8b);
  color: #fff;
  font-size: clamp(24px, 6vw, 62px);
}
.card-started > .profile.page-profile .image:has(> .page-profile-icon) {
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 68px !important;
  height: 68px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
}
.card-started > .profile.page-profile .image > .page-profile-icon {
  box-sizing: border-box !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  font-size: 22px !important;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 10px !important;
  transform: rotate(45deg);
  justify-self: center;
  align-self: center;
}
.card-started > .profile.page-profile .image > .page-profile-icon i {
  transform: rotate(-45deg);
}
.page-profile--resume .page-profile-icon { background: linear-gradient(135deg, #34436e, #5276b5); }
.page-profile--works .page-profile-icon { background: linear-gradient(135deg, #4a347f, #087f8b); }
.page-profile--contact .page-profile-icon { background: linear-gradient(135deg, #0d3458, #218b70); }
body:has(.page-profile--home) .card-started > .profile.page-profile--home .slide {
  background-image: url("../images/home_banner.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
body:has(.page-profile--works):not(:has(.project-profile)) .card-started > .profile.page-profile--works .slide {
  background-image: url("../images/projects_banner.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
body:has(.project-profile) .card-started > .profile.project-profile .slide {
  overflow: hidden;
  background-image: none !important;
}
body:has(.project-profile) .card-started > .profile.project-profile .project-profile-slide-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body:has(.project-profile) .card-started > .profile.project-profile > .image img {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  padding: 6px !important;
  background-color: #fff;
  object-fit: contain;
  object-position: center;
}
body .card-started > .profile.page-profile .slide {
  height: auto !important;
  aspect-ratio: 3 / 2;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}
body .card-started > .profile.page-profile .slide::before {
  display: none !important;
  content: none !important;
}
body .card-started > .profile.page-profile .slide::after {
  display: none !important;
}
@media (min-width: 1200px) {
  body .card-started > .profile.page-profile:not(.page-profile--home) .title {
    padding-top: 64px !important;
  }
  body:has(.contact-showcase) .card-started > .profile.page-profile--contact .title {
    padding-top: 0 !important;
  }
  body .card-started > .profile.page-profile:not(.page-profile--home) .image {
    margin: calc(66.667% - 154px) auto 0 !important;
  }
  body .card-started > .profile.page-profile:not(.page-profile--home) .image:has(> .page-profile-icon) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 68px !important;
    height: 68px !important;
    margin: calc(66.667% - 130px) auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }
  body .card-started > .profile.page-profile:not(.page-profile--home) .image:has(> .page-profile-icon)::before,
  body .card-started > .profile.page-profile:not(.page-profile--home) .image:has(> .page-profile-icon)::after {
    display: none !important;
    content: none !important;
  }
  body .card-started > .profile.page-profile:not(.page-profile--home) .image:has(> .page-profile-icon) + .title {
    margin-top: 12px !important;
    padding-top: 0 !important;
  }
}
.mobile-site-brand { display: none; }

@media (max-width: 1199px) {
  body:not(:has(.blog-layout-wide)) .page > .container {
    box-sizing: border-box;
    top: 0 !important;
    transform: none !important;
    width: 100%;
    max-width: 940px !important;
    padding: 108px 22px 30px !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header {
    position: fixed !important;
    top: 12px !important;
    right: 16px !important;
    left: 16px !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    height: 72px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid #e1e9ef;
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 28px rgba(20, 54, 80, .1);
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile {
    position: absolute !important;
    top: 50% !important;
    inset-inline-start: 12px !important;
    display: grid !important;
    grid-template-areas: "image title" "image subtitle";
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center !important;
    column-gap: 9px;
    width: 220px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    text-align: start !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .image {
    position: static !important;
    grid-area: image;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .title {
    position: static !important;
    grid-area: title;
    min-width: 0;
    margin: 0 !important;
    color: #23384d;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.35;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .subtitle {
    position: static !important;
    grid-area: subtitle;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    color: #718297;
    font-size: 10px !important;
    line-height: 1.35;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .menu-btn {
    display: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu {
    position: absolute !important;
    inset-inline-end: 12px !important;
    inset-inline-start: 245px !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul {
    display: flex !important;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 54px;
    padding: 3px 4px !important;
    border-radius: 12px;
    background: transparent;
    color: #52677c;
    text-align: center;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a:before {
    display: none;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a .icon {
    width: auto;
    height: 24px;
    color: inherit;
    font-size: 19px;
    line-height: 24px;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a .link {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: inherit;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: #eaf6f5;
    color: #087f8b;
  }
}

/* Replace the green default canvas with a quiet neutral light-theme background. */
body[data-theme="light"] {
  background-color: #dfe4e9 !important;
}
body[data-theme="light"] .background.gradient {
  background: linear-gradient(135deg, #e8ecef 0%, #dce2e7 58%, #d3dbe1 100%) !important;
}
body[data-theme="light"] .bg-bubbles li {
  background-color: rgba(56, 77, 94, .045) !important;
}

@media (max-width: 1199px) {
  .card-started > .profile.page-profile {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas: "image title" "image subtitle" "social social" "links links";
    align-content: center;
    align-items: center;
    gap: 3px 14px;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding: 16px !important;
    margin: 0 0 16px !important;
    border: 1px solid #e1e9ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 54, 80, .08);
    text-align: start !important;
  }

  .card-started > .profile.page-profile .slide { display: none; }
  .card-started > .profile.page-profile .image {
    position: relative;
    grid-area: image;
    display: grid !important;
    place-items: center;
    width: 68px !important;
    height: 68px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden;
  }
  .card-started > .profile.page-profile .image::before,
  .card-started > .profile.page-profile .image::after { content: none !important; }
  .card-started > .profile.page-profile .image img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  .card-started > .profile.page-profile .title {
    grid-area: title;
    position: static !important;
    min-width: 0;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    text-align: start !important;
  }
  .card-started > .profile.page-profile .subtitle {
    grid-area: subtitle;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-align: start !important;
  }
  .card-started > .profile.page-profile .page-profile-socials {
    grid-area: social;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin: 12px 0 0 !important;
  }
  .card-started > .profile.page-profile .lnks {
    grid-area: links;
    position: static !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 12px 0 0 !important;
  }
  .card-started > .profile.page-profile .lnks .lnk { min-width: 0; }

  body:not(:has(.blog-layout-wide)) .page > .container {
    box-sizing: border-box;
    top: 0 !important;
    transform: none !important;
    width: 100%;
    max-width: 100% !important;
    padding: 88px 10px 104px !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header {
    position: fixed !important;
    top: 8px !important;
    right: 10px !important;
    left: 10px !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    height: 64px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid #e1e9ef;
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(20, 54, 80, .1);
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile.page-profile {
    display: none !important;
  }

  .mobile-site-brand {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    display: flex !important;
    align-items: center;
    gap: 9px;
    width: calc(100% - 122px);
    min-width: 0;
    margin: 0;
    color: #23384d;
    text-align: start;
    text-decoration: none;
    transform: translateY(-50%);
  }
  .mobile-site-brand__logo {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #dce7f0;
    border-radius: 50%;
    background: #fff;
  }
  .mobile-site-brand__logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mobile-site-brand__text { display: grid; min-width: 0; gap: 2px; }
  .mobile-site-brand__text strong {
    overflow: hidden;
    color: #23384d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-site-brand__text small {
    overflow: hidden;
    color: #718297;
    font-size: 9px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile {
    position: absolute !important;
    top: 50% !important;
    inset-inline-start: 12px !important;
    display: grid !important;
    grid-template-areas: "image title" "image subtitle";
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center !important;
    column-gap: 8px;
    width: calc(100% - 72px) !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    text-align: start !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .image {
    position: static !important;
    grid-area: image;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .title {
    position: static !important;
    grid-area: title;
    min-width: 0;
    margin: 0 !important;
    color: #23384d;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.3;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .subtitle {
    position: static !important;
    grid-area: subtitle;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    color: #718297;
    font-size: 10px !important;
    line-height: 1.3;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .menu-btn {
    position: absolute !important;
    top: 50% !important;
    inset-inline-end: 10px !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border: 1px solid #e1e9ef;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%) !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu {
    position: fixed !important;
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 10001 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: auto !important;
    height: 68px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 4px !important;
    overflow: hidden;
    border: 1px solid #e1e9ef;
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(17, 38, 70, .12);
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul {
    position: static !important;
    display: flex !important;
    align-items: stretch;
    gap: 2px;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li {
    display: flex !important;
    flex: 1 1 20%;
    width: 20% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 14px;
    background: transparent;
    color: #53677d;
    text-align: center;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a:before {
    display: none;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a .icon {
    display: block !important;
    width: auto;
    height: 22px;
    margin: 0 !important;
    color: inherit;
    font-size: 18px !important;
    line-height: 22px;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a .link {
    position: static !important;
    display: block !important;
    overflow: hidden;
    max-width: 100%;
    color: inherit;
    font-size: 9px !important;
    line-height: 1.2;
    opacity: 1 !important;
    text-overflow: ellipsis;
    visibility: visible !important;
    white-space: nowrap;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: #eaf6f5;
    color: #087f8b;
  }

}

@media (min-width: 1200px) {
  body .switcher-popup--mobile { display: none !important; }
  body .switcher-popup--desktop { display: flex !important; }
  html[dir="rtl"] body .switcher-popup--desktop {
    right: auto !important;
    left: 15px !important;
  }
  html[dir="ltr"] body .switcher-popup--desktop {
    right: 15px !important;
    left: auto !important;
  }
  body .switcher-popup {
    position: fixed !important;
    top: 40% !important;
    inset-inline-end: 15px !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    flex-direction: column !important;
    gap: 12px !important;
    transform: translateY(-50%) !important;
  }
  body .switcher-popup .sw-btn {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }
  body .switcher-popup .sw-btn span { display: block !important; }
}

@media (max-width: 1199px) {
  html body .switcher-popup--desktop { display: none !important; visibility: hidden !important; }
  body .switcher-popup--mobile { display: flex !important; }
}

.switcher-popup--desktop { display: none !important; }
@media (min-width: 1200px) {
  html body .switcher-popup--desktop { display: flex !important; visibility: visible !important; }
}

@media (min-width: 1200px) {
  html[dir="rtl"] body .switcher-popup {
    right: auto !important;
    left: 15px !important;
  }
  html[dir="ltr"] body .switcher-popup {
    right: 15px !important;
    left: auto !important;
  }
}

@media (max-width: 360px) {
  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .subtitle {
    display: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile .title {
    font-size: 12px !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a .link {
    font-size: 8px !important;
  }
}

@media (max-width: 1200px) {
  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header,
  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu {
    border-color: #454b59;
    background: rgba(48, 53, 65, .97);
  }

  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .profile .title,
  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .mobile-site-brand__text strong,
  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu ul li a {
    color: #eef3fa;
  }

  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .profile .subtitle {
    color: #bac6d7;
  }
  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .mobile-site-brand__text small {
    color: #bac6d7;
  }

  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn {
    border-color: #454b59;
    background: #303541;
  }

  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn span,
  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn span:before,
  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn span:after {
    background: #eef3fa;
  }

  body:not(:has(.blog-layout-wide)):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: rgba(122, 224, 216, .12);
    color: #7ae0d8;
  }
}

/* Keep the hamburger strokes legible after the responsive theme overrides. */
body[data-theme="dark"] .page > .container > .header .menu-btn {
  border-color: rgba(225, 234, 245, .28) !important;
  background: #30343e !important;
}
body[data-theme="dark"] .page > .container > .header .menu-btn span,
body[data-theme="dark"] .page > .container > .header .menu-btn span::before,
body[data-theme="dark"] .page > .container > .header .menu-btn span::after {
  background-color: #f0f4fa !important;
  opacity: 1 !important;
}

@media (max-width: 1199px) {
  body:has(.blog-layout-wide) .page > .container > .header {
    position: fixed !important;
    top: -6px !important;
    right: calc(50% - 50vw + 16px) !important;
    left: calc(50% - 50vw + 16px) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    height: 72px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid #e1e9ef;
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 28px rgba(20, 54, 80, .1);
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile {
    position: absolute !important;
    top: 50% !important;
    inset-inline-start: 12px !important;
    display: grid !important;
    grid-template-areas: "image title" "image subtitle";
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center !important;
    column-gap: 9px;
    width: 220px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    text-align: start !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .image {
    position: static !important;
    grid-area: image;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .title {
    position: static !important;
    grid-area: title;
    min-width: 0;
    margin: 0 !important;
    color: #23384d;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.35;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .subtitle {
    position: static !important;
    grid-area: subtitle;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    color: #718297;
    font-size: 10px !important;
    line-height: 1.35;
  }

  body:has(.blog-layout-wide) .page > .container > .header .menu-btn {
    display: none !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu {
    position: absolute !important;
    inset-inline-end: 12px !important;
    inset-inline-start: 245px !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul {
    display: flex !important;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 54px;
    padding: 3px 4px !important;
    border-radius: 12px;
    background: transparent;
    color: #52677c;
    text-align: center;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a:before {
    display: none;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a .icon {
    width: auto;
    height: 24px;
    color: inherit;
    font-size: 19px;
    line-height: 24px;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a .link {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: inherit;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: #eaf6f5;
    color: #087f8b;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a .link {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body:has(.blog-layout-wide) main.blog-layout-wide {
    padding-top: 81px !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header,
  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu {
    border-color: #454b59;
    background: rgba(48, 53, 65, .97);
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .profile .title {
    color: #eef3fa;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .profile .subtitle {
    color: #a7b0c0;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu ul li a {
    color: #d3d9e3;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: rgba(122, 224, 216, .12);
    color: #7ae0d8;
  }
}

@media (max-width: 1199px) {
  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=dark"]) {
    background-color: #f8fbfd !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=dark"]) .background.gradient {
    background: #f8fbfd !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=dark"]) .bg-bubbles {
    display: none !important;
  }

  body:has(.blog-layout-wide) .page > .container {
    padding-top: 79px !important;
  }

  body:has(.blog-layout-wide) main.blog-layout-wide {
    padding-top: 0 !important;
  }
}

@media (max-width: 380px) {
  body:has(.blog-layout-wide) .page > .container {
    padding-top: 79px !important;
  }
}

@media (max-width: 1199px) {
  body:has(.blog-layout-wide) .page > .container > .header {
    top: 8px !important;
    right: 10px !important;
    left: 10px !important;
    z-index: 10000 !important;
    height: 64px !important;
    padding: 0 12px !important;
    border: 1px solid #e1e9ef !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 8px 24px rgba(20, 54, 80, .1) !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile {
    top: 50% !important;
    right: 12px !important;
    left: auto !important;
    grid-template-areas: "image title" "image subtitle";
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    width: calc(100% - 72px) !important;
    height: auto !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    text-align: start !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .image {
    width: 44px !important;
    height: 44px !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .title {
    min-width: 0;
    color: #23384d;
    font-size: 14px !important;
    line-height: 1.3;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .subtitle {
    grid-area: subtitle !important;
    min-width: 0;
    color: #718297;
    font-size: 10px !important;
    line-height: 1.3;
  }

  body:has(.blog-layout-wide) .page > .container > .header .menu-btn {
    top: 50% !important;
    right: auto !important;
    left: 10px !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #e1e9ef !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu {
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 10001 !important;
    box-sizing: border-box !important;
    width: auto !important;
    height: 68px !important;
    max-height: 68px !important;
    padding: 4px !important;
    border: 1px solid #e1e9ef !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 8px 24px rgba(17, 38, 70, .12) !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul {
    gap: 2px;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a {
    gap: 2px;
    border-radius: 14px;
    color: #53677d;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a .icon {
    height: 22px;
    font-size: 18px !important;
    line-height: 22px;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a .link {
    font-size: 9px !important;
    line-height: 1.2;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: #eaf6f5 !important;
    color: #087f8b !important;
  }

  body:has(.blog-layout-wide) .switcher-popup {
    top: 40% !important;
    right: 15px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: auto !important;
    transform: translateY(-50%) !important;
  }

  body:has(.blog-layout-wide) .switcher-popup .sw-btn {
    display: flex !important;
    place-items: initial !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1) !important;
  }

  body:has(.blog-layout-wide) .switcher-popup .sw-btn span {
    display: block !important;
    opacity: 0 !important;
    visibility: visible !important;
  }

  body:has(.blog-layout-wide) .switcher-popup .bmc-wbtn.d-none {
    display: none !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header,
  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu {
    border-color: #454b59 !important;
    background: rgba(48, 53, 65, .97) !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .profile .title,
  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu ul li a {
    color: #eef3fa !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .profile .subtitle {
    color: #bac6d7 !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn {
    border-color: #454b59 !important;
    background: #303541 !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn span,
  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn span:before,
  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .menu-btn span:after {
    background: #eef3fa !important;
  }

  body:has(.blog-layout-wide):has(.switcher-popup a[href="?theme=light"]) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: rgba(122, 224, 216, .12) !important;
    color: #7ae0d8 !important;
  }
}

@media (max-width: 360px) {
  body:has(.blog-layout-wide) .page > .container > .header .profile .subtitle {
    display: none !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .profile .title {
    font-size: 12px !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header .top-menu ul li a .link {
    font-size: 8px !important;
  }
}

@media (min-width: 1201px) {
  body:has(.blog-layout-wide) .page > .container > .header {
    right: -10px !important;
    top: 23px !important;
    transform: none !important;
  }

  body:has(.blog-layout-wide) main.blog-layout-wide {
    padding-right: 72px !important;
  }
}

@media (max-width: 1199px) {
  body:not(:has(.blog-layout-wide)) .page > .container {
    padding-top: 0 !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container main.content.works-showcase:not(.blog-page-content) {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 8px !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header,
  body:has(.blog-layout-wide) .page > .container > .header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header {
    width: auto !important;
    margin: 0 -8px 24px !important;
  }

  body:has(.blog-layout-wide) .page > .container {
    padding-top: 0 !important;
  }

  body:has(.blog-layout-wide) .page > .container > .header {
    width: calc(100% - 4px) !important;
    margin: 0 2px 15px !important;
  }

  body:has(.blog-layout-wide) .page > .container main.blog-layout-wide {
    box-sizing: border-box !important;
    width: calc(100% - 4px) !important;
    margin-right: 2px !important;
    margin-left: 2px !important;
    margin-top: -15px !important;
    padding-top: 15px !important;
  }
}

@media (max-width: 1199px) {
  body:not(:has(.blog-layout-wide)) main.content.works-showcase:not(.blog-page-content) {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: calc(100vw - 38px) !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw + 19px) !important;
    margin-right: calc(50% - 50vw + 19px) !important;
    transform: none !important;
  }

}

@media (max-width: 1199px) {
  body:has(.blog-layout-wide) .page > .container main.blog-layout-wide {
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a {
    transition: none;
  }
}

.mobile-bottom-nav { display: none; }
@media (max-width: 1199px) {
  body:has(.mobile-bottom-nav) .page > .container > .header .top-menu { display: none !important; }
  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn { display: block !important; }
}

@media (max-width: 1199px) {
  body .page > .container > .header {
    position: relative !important;
    top: auto !important;
    right: 12px !important;
    left: 12px !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    height: 80px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid #454b59 !important;
    border-radius: 20px !important;
    background: rgba(48, 53, 65, .97) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28) !important;
  }
  body .page > .container > .header .mobile-site-brand {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 16px !important;
    display: flex !important;
    width: auto !important;
    max-width: calc(100% - 210px) !important;
    gap: 10px;
    color: #eef3fa !important;
    flex-direction: row !important;
    justify-content: flex-start;
    text-align: start;
    direction: inherit;
    transform: translateY(-50%) !important;
  }
  body .mobile-site-brand__logo {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border: 1px solid #454b59;
    background: #303541;
  }
  body .mobile-site-brand__text strong { color: #eef3fa !important; font-size: 13px; }
  body .mobile-site-brand__text small { color: #bac6d7 !important; font-size: 9px; }
  body .page > .container > .header .menu-btn {
    position: absolute !important;
    top: 50% !important;
    right: auto !important;
    left: 12px !important;
    inset-inline-end: auto !important;
    inset-inline-start: 12px !important;
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    border: 1px solid #454b59 !important;
    border-radius: 50% !important;
    background: #303541 !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    z-index: 10002 !important;
  }
  body .page > .container > .header .menu-btn span,
  body .page > .container > .header .menu-btn span::before,
  body .page > .container > .header .menu-btn span::after {
    background: #eef3fa !important;
  }
  body .switcher-popup {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    left: 68px !important;
    right: auto !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10020 !important;
    transform: translateY(-50%) !important;
  }
  body .switcher-popup .sw-btn span { display: none !important; }
  body .switcher-popup .sw-btn {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
    border: 1px solid rgba(220, 231, 240, .3) !important;
    background: #303541 !important;
    box-shadow: none !important;
    color: #eef3fa !important;
  }
  body .switcher-popup .sw-btn.light i { color: #fff !important; }
  body .switcher-popup .sw-btn.dark i { color: #ebe761 !important; }
  html[dir="rtl"] body .page > .container > .header .mobile-site-brand {
    right: 16px !important;
    left: auto !important;
    flex-direction: row !important;
    direction: rtl !important;
  }
  html[dir="ltr"] body .page > .container > .header .mobile-site-brand {
    right: 16px !important;
    left: auto !important;
    flex-direction: row !important;
  }
  html[dir="rtl"] body .page > .container > .header .menu-btn {
    right: auto !important;
    left: 12px !important;
  }
  html[dir="ltr"] body .page > .container > .header .menu-btn {
    right: auto !important;
    left: 12px !important;
  }
  body .page > .container > .header .top-menu {
    display: none !important;
  }
}

@media (max-width: 360px) {
  body .page > .container > .mobile-bottom-nav { width: calc(100vw - 20px) !important; }
  body .page > .container > .mobile-bottom-nav a .link { font-size: 8px !important; }
  body .page > .container > .mobile-bottom-nav a .icon { font-size: 18px !important; }
}
@media (max-height: 500px) and (max-width: 1199px) {
  body .page > .container > .mobile-bottom-nav {
    bottom: 0 !important;
    height: 58px !important;
    max-height: 58px !important;
    border-radius: 20px !important;
  }
  body .page > .container > .mobile-bottom-nav a { gap: 1px; }
  body .page > .container > .mobile-bottom-nav a .icon { height: 20px; font-size: 18px !important; line-height: 20px; }
  body .page > .container > .mobile-bottom-nav a .link { font-size: 8px !important; }
  body .page > .container .card-inner { padding-bottom: 78px !important; }
}

@media (max-width: 1199px) {
  body:has(.mobile-bottom-nav) .page > .container > .header { z-index: 10000 !important; }
  body:has(.mobile-bottom-nav) .mobile-bottom-nav { z-index: 100050 !important; }
  body:has(.mobile-bottom-nav) .s_overlay { z-index: 100060 !important; }
  body:has(.mobile-bottom-nav) .content-sidebar,
  body:has(.mobile-bottom-nav) .content-sidebar.active { z-index: 100070 !important; }
}

@media (max-width: 1199px) {
  body[data-theme="light"]:has(.mobile-bottom-nav) {
    --drawer-bg: #fff;
    --drawer-panel: #f6f8fa;
    --drawer-text: #363636;
    --drawer-scrollbar: rgba(54, 54, 54, .35);
  }
  body[data-theme="dark"]:has(.mobile-bottom-nav) {
    --drawer-bg: #31313a;
    --drawer-panel: #3b3b42;
    --drawer-text: #f1f1f4;
    --drawer-scrollbar: rgba(255, 255, 255, .3);
  }
  body:has(.mobile-bottom-nav) .s_overlay {
    background: rgba(12, 17, 24, .58) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  body:has(.mobile-bottom-nav) .content-sidebar,
  body:has(.mobile-bottom-nav) .content-sidebar.active {
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(338px, calc(100vw - 24px)) !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--drawer-bg) !important;
    color: var(--drawer-text);
    box-shadow: none !important;
    transform: translateX(-105%);
    transition: transform .32s cubic-bezier(.2, .75, .25, 1) !important;
  }
  body:has(.mobile-bottom-nav) .content-sidebar.active { transform: translateX(0) !important; }
  body:has(.mobile-bottom-nav) .content-sidebar .sidebar-wrap {
    box-sizing: border-box;
    height: 100%;
    padding: 68px 0 max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--drawer-scrollbar) transparent;
    scrollbar-width: thin;
  }
  body:has(.mobile-bottom-nav) .content-sidebar .close {
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    z-index: 3;
    width: 68px !important;
    height: 68px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--drawer-panel) !important;
    box-shadow: none !important;
  }
  html[dir="rtl"] body:has(.mobile-bottom-nav) .content-sidebar,
  html[dir="rtl"] body:has(.mobile-bottom-nav) .content-sidebar.active {
    right: 0 !important;
    left: auto !important;
    transform: translateX(105%);
  }
  html[dir="rtl"] body:has(.mobile-bottom-nav) .content-sidebar.active { transform: translateX(0) !important; }
  html[dir="rtl"] body:has(.mobile-bottom-nav) .content-sidebar .close {
    right: auto !important;
    left: 0 !important;
  }
}

@media (max-width: 1199px) {
  body .mobile-bottom-nav {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    z-index: 100050 !important;
    display: block !important;
    width: min(440px, calc(100vw - 32px)) !important;
    height: 72px !important;
    max-height: 72px !important;
    padding: 6px !important;
    overflow: hidden;
    border: 1px solid rgba(242, 196, 101, .34) !important;
    border-radius: 26px !important;
    background: linear-gradient(115deg, rgba(7, 19, 38, .98), rgba(17, 48, 72, .97)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42), 0 4px 14px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(-50%);
  }
  body .mobile-bottom-nav::before {
    position: absolute;
    inset: 0 22% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 221, 151, .72), transparent);
    content: "";
    pointer-events: none;
  }
  body .mobile-bottom-nav ul {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    background: transparent !important;
  }
  body .mobile-bottom-nav li { display: flex !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
  body .mobile-bottom-nav a {
    position: relative;
    display: flex !important;
    flex: 1;
    min-width: 0;
    min-height: 0 !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 1px !important;
    border: 1px solid transparent;
    border-radius: 15px;
    color: rgba(231, 237, 245, .76) !important;
    text-decoration: none;
  }
  body .mobile-bottom-nav a .icon { display: block !important; height: 23px; color: inherit; font-size: 20px !important; line-height: 23px; }
  body .mobile-bottom-nav a .link {
    position: static !important;
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    color: inherit !important;
    font-size: 9px !important;
    font-weight: 700;
    line-height: 1.2;
    opacity: 1 !important;
    text-align: center;
    text-overflow: ellipsis;
    visibility: visible !important;
    white-space: nowrap;
  }
  body .mobile-bottom-nav li:is(.active, :hover) a { background: linear-gradient(180deg, rgba(242, 196, 101, .13), rgba(242, 196, 101, .035)); color: #ffdb91 !important; }
  body .mobile-bottom-nav li:is(.active, :hover) a::after {
    position: absolute;
    inset: auto 30% 1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #c89135, #ffe4a4, #c89135);
    content: "";
  }
  body:has(.switcher-popup a[href="?theme=light"]) .mobile-bottom-nav { background: #101c2c !important; }
}
@media (max-width: 1199px) {
  body .page > .container { padding-top: 84px !important; }
  body .mobile-bottom-nav {
    bottom: 0 !important;
    width: min(440px, calc(100vw - 28px)) !important;
    height: clamp(64px, 18vw, 74px) !important;
    max-height: clamp(64px, 18vw, 74px) !important;
    padding: clamp(4px, 1.4vw, 6px) !important;
  }
  body .mobile-bottom-nav a { gap: clamp(2px, .7vw, 4px); }
  body .mobile-bottom-nav a .icon { font-size: clamp(18px, 5.2vw, 21px) !important; }
  body .mobile-bottom-nav a .link { font-size: clamp(8px, 2.15vw, 9px) !important; }
  body .page > .container .card-inner { padding-bottom: 104px !important; }
}
@media (max-width: 360px) {
  body .mobile-bottom-nav { width: calc(100vw - 20px) !important; }
  body .mobile-bottom-nav a .link { font-size: 8px !important; }
  body .mobile-bottom-nav a .icon { font-size: 18px !important; }
}
@media (max-height: 500px) and (max-width: 1199px) {
  body .mobile-bottom-nav { bottom: 0 !important; height: 58px !important; max-height: 58px !important; border-radius: 20px !important; }
  body .mobile-bottom-nav a { gap: 1px; }
  body .mobile-bottom-nav a .icon { height: 20px; font-size: 18px !important; line-height: 20px; }
  body .mobile-bottom-nav a .link { font-size: 8px !important; }
  body .page > .container .card-inner { padding-bottom: 78px !important; }
}

@media (max-width: 1199px) {
  body .mobile-bottom-nav {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    margin: 0 auto !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 1199px) {
  body:has(.mobile-bottom-nav) .page > .container {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
  }
  body:has(.mobile-bottom-nav) .page > .container .card-inner {
    padding-bottom: 104px !important;
  }
  body:has(.mobile-bottom-nav):has(.works-showcase) .page > .container .card-inner {
    padding-bottom: 0 !important;
  }
  body .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    margin: 0 auto !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 1199px) {
  body .mobile-bottom-nav {
    bottom: 0 !important;
  }
}

@media (max-width: 1199px) {
  body .page > .container > .mobile-bottom-nav {
    box-sizing: border-box;
    left: 10px !important;
    right: auto !important;
    width: calc(100vw - 26px) !important;
    max-width: none !important;
    transform: none !important;
  }
}

@media (max-width: 1199px) {
  body .page > .container .card-inner {
    box-sizing: border-box;
    width: calc(100% + 16px);
    margin-inline: -8px;
    border: 1px solid rgba(18, 38, 63, .1);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(20, 42, 68, .08);
  }

  body[data-theme="dark"] .page > .container .card-inner {
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
  }

  body .card-started {
    box-sizing: border-box;
    width: calc(100% + 16px);
    margin-inline: -8px;
  }

  body .card-started > .profile.page-profile {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "image" "title" "subtitle" "social" "links";
    justify-items: center;
    gap: 4px 0;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    padding: 0 0 18px !important;
    margin: 0 0 16px !important;
    border: 1px solid rgba(18, 38, 63, .12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 42, 68, .12);
    text-align: center !important;
    transform: none !important;
  }

  body .card-started > .profile.page-profile .slide {
    display: block !important;
    top: 0;
    left: 0;
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 2;
    border-radius: 19px 19px 0 0;
    background-position: center center !important;
    background-size: cover !important;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  }
  body .card-started > .profile.page-profile .slide::after { display: none !important; }

  body .card-started > .profile.page-profile .image {
    z-index: 2;
    width: 68px !important;
    height: 68px !important;
    margin: calc(66.667% - 68px) auto 0 !important;
    border: 2px solid rgba(242, 196, 101, .75);
    border-radius: 50% !important;
    background: #10243a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
  }
  body:has(.project-profile) .card-started > .profile.project-profile > .image {
    justify-self: right;
    margin-right: 18px !important;
    margin-left: 0 !important;
  }
  body .card-started > .profile.page-profile:not(.page-profile--home) .image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  body .card-started > .profile.page-profile--home .image {
    width: clamp(128px, 31vw, 184px) !important;
    height: clamp(156px, 32vw, 190px) !important;
    margin: calc(66.667% - 124px) auto 0 !important;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 42px !important;
    background: #292a30;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  }

  body .card-started > .profile.page-profile--home .image img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
  }

  body .card-started > .profile.page-profile .title {
    padding: 40px 16px 0;
    font-size: clamp(27px, 7vw, 38px) !important;
    text-align: center !important;
  }

  body .card-started > .profile.page-profile--resume {
    align-content: start;
  }
  body .card-started > .profile.page-profile--resume .title {
    padding-top: 12px !important;
  }

  body .card-started > .profile.page-profile .subtitle {
    height: auto !important;
    padding: 0 16px;
    font-size: clamp(14px, 3.8vw, 18px) !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  body .card-started > .profile.page-profile .page-profile-socials {
    justify-content: center !important;
    gap: 18px !important;
    margin: 14px 0 0 !important;
  }

  body .card-started > .profile.page-profile .lnks {
    width: calc(100% - 32px);
    margin: 14px auto 0 !important;
  }
  body .card-started > .profile.page-profile--resume .lnks {
    position: static !important;
    margin-top: 10px !important;
  }

  body .card-started > .profile.page-profile--home .title {
    padding-top: 32px;
  }

  body[data-theme="dark"] .card-started > .profile.page-profile {
    background: #31313a;
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
  }

  body[data-theme="dark"] .card-started > .profile.page-profile .slide::after {
    background: #31313a;
  }
}

@media (min-width: 1200px) {
  body:not(:has(.blog-layout-wide)) .page > .container {
    display: grid !important;
    direction: ltr;
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
    grid-template-areas: "content profile";
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    width: min(1268px, calc(100vw - 180px)) !important;
    max-width: 1268px !important;
    height: clamp(600px, 90vh, 820px) !important;
    max-height: none !important;
    margin: auto !important;
    padding: 0 !important;
    transform: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header {
    position: fixed !important;
    top: 50% !important;
    right: max(14px, calc((100vw - 1268px) / 2 - 82px)) !important;
    left: auto !important;
    z-index: 10000 !important;
    display: block !important;
    float: none !important;
    width: 72px !important;
    height: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    text-align: center;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .profile,
  body:not(:has(.blog-layout-wide)) .page > .container > .header .mobile-site-brand {
    display: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .menu-btn {
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    margin: 0 0 8px !important;
    border-radius: 8px !important;
    background: #30313a !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .menu-btn span,
  body:not(:has(.blog-layout-wide)) .page > .container > .header .menu-btn span::before,
  body:not(:has(.blog-layout-wide)) .page > .container > .header .menu-btn span::after {
    background: #eef3fa !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu {
    position: static !important;
    display: block !important;
    width: 72px !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li {
    display: block !important;
    width: 100% !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a {
    display: flex !important;
    min-height: 72px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 3px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    border-radius: 0 !important;
    background: #30313a !important;
    color: #00d2f3 !important;
    font-size: 12px !important;
    text-align: center;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a .icon {
    height: 24px;
    color: #aeb0b6;
    font-size: 21px;
    line-height: 24px;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li:is(.active, :hover) a {
    background: #393a43 !important;
    color: #dc49ef !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .header .top-menu ul li a::before {
    display: none !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .card-inner {
    grid-area: content;
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    direction: rtl;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .card-inner .card-wrap {
    box-sizing: border-box;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .card-started {
    grid-area: profile;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
    direction: rtl;
  }

  body:not(:has(.blog-layout-wide)) .page > .container > .card-started > .profile.page-profile {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 1199px) {
  body .page > .container > .header .top-menu ul {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  body:has(.mobile-bottom-nav) .page > .container {
    transform: none !important;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header {
    position: fixed !important;
    top: 8px !important;
    right: 16px !important;
    left: 16px !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    height: 60px !important;
    padding: 6px 12px !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid #454b59;
    border-radius: 17px;
    background: rgba(48, 53, 65, .97);
    box-shadow: 0 10px 28px rgba(20, 32, 48, .2);
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .profile {
    position: absolute !important;
    top: 50% !important;
    inset-inline-start: 12px !important;
    display: grid !important;
    grid-template-areas: "image title" "image subtitle";
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center !important;
    column-gap: 9px;
    width: 220px !important;
    max-width: calc(100% - 88px);
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    text-align: start !important;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .profile .image {
    position: static !important;
    grid-area: image;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .profile .image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .profile .title,
  body:has(.mobile-bottom-nav) .page > .container > .header .profile .subtitle {
    position: static !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .profile .title {
    grid-area: title;
    color: #eef3fa;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.35;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .profile .subtitle {
    grid-area: subtitle;
    color: #bac6d7;
    font-size: 10px !important;
    line-height: 1.35;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn {
    position: absolute !important;
    top: 50% !important;
    inset-inline-start: auto !important;
    inset-inline-end: 10px !important;
    display: grid !important;
    place-items: center;
    box-sizing: border-box !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    border: 1px solid #505c6d;
    border-radius: 12px;
    background: #303541;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span,
  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span::before,
  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span::after {
    background: #eef3fa !important;
  }

  body:has(.mobile-bottom-nav) .page > .container > .header .top-menu {
    display: none !important;
  }

  body .mobile-bottom-nav {
    position: fixed !important;
    right: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    z-index: 100050 !important;
    display: block !important;
    width: min(440px, calc(100vw - 32px)) !important;
    height: 72px !important;
    max-height: 72px !important;
    padding: 6px !important;
    transform: translateX(-50%) !important;
  }

  body[data-theme="light"]:has(.mobile-bottom-nav) .page > .container > .header {
    border-color: #e1e9ef;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 28px rgba(20, 54, 80, .1);
  }

  body[data-theme="light"]:has(.mobile-bottom-nav) .page > .container > .header .profile .title {
    color: #23384d;
  }

  body[data-theme="light"]:has(.mobile-bottom-nav) .page > .container > .header .profile .subtitle {
    color: #718297;
  }

  body[data-theme="light"]:has(.mobile-bottom-nav) .page > .container > .header .menu-btn {
    border-color: #e1e9ef;
    background: #fff;
  }

  body:has(.blog-layout-wide) main.blog-layout-wide {
    padding-top: 76px !important;
    padding-inline-end: 0 !important;
  }
}

/* Final dark-theme override for hamburger bars across mobile and desktop headers. */
html body[data-theme="dark"] .page > .container > .header .menu-btn {
  border-color: rgba(235, 241, 248, .42) !important;
  background-color: #30343e !important;
}
html body[data-theme="dark"] .page > .container > .header .menu-btn span,
html body[data-theme="dark"] .page > .container > .header .menu-btn span::before,
html body[data-theme="dark"] .page > .container > .header .menu-btn span::after {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 1199px) {
  body:has(.mobile-bottom-nav) .page > .container > .header {
    height: 58px !important;
    min-height: 58px !important;
    border: 1px solid rgba(242, 196, 101, .34) !important;
    border-radius: 26px !important;
    background: linear-gradient(115deg, rgba(7, 19, 38, .98), rgba(17, 48, 72, .97)) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
  }
  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn {
    border-color: rgba(242, 196, 101, .3) !important;
    background: rgba(255, 255, 255, .07) !important;
  }
  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span,
  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span::before,
  body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span::after {
    background: #eef3fa !important;
  }
  body:has(.mobile-bottom-nav) .page > .container > .header .profile .title { color: #eef3fa !important; }
  body:has(.mobile-bottom-nav) .page > .container > .header .profile .subtitle { color: #bac6d7 !important; }
  body:has(.mobile-bottom-nav) .page > .container > .header .lang-btn,
  body:has(.mobile-bottom-nav) .page > .container > .header .sw-btn {
    border-color: rgba(242, 196, 101, .28) !important;
    background: rgba(255, 255, 255, .07) !important;
    color: #eef3fa !important;
  }

  body:has(.mobile-bottom-nav) .page > .container > .mobile-bottom-nav {
    box-sizing: border-box !important;
    right: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: min(calc(100vw - 24px), 920px) !important;
    max-width: none !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 4px !important;
    border-radius: 26px !important;
    transform: translateX(-50%) !important;
  }
  body:has(.mobile-bottom-nav) .page > .container > .mobile-bottom-nav ul { gap: 2px; }
  body:has(.mobile-bottom-nav) .page > .container > .mobile-bottom-nav a { gap: 1px; padding: 2px 1px !important; border-radius: 12px; }
  body:has(.mobile-bottom-nav) .page > .container > .mobile-bottom-nav a .icon { height: 20px; font-size: 18px !important; line-height: 20px; }
  body:has(.mobile-bottom-nav) .page > .container > .mobile-bottom-nav a .link { font-size: 8px !important; line-height: 1.1; }
  body:has(.mobile-bottom-nav) .page > .container .card-inner { padding-bottom: 78px !important; }

  body:not(:has(.blog-layout-wide)) .page > .container > .header,
  body:has(.blog-layout-wide) .page > .container > .header {
    box-sizing: border-box !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    top: auto !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    width: calc(100% + 20px) !important;
    max-width: none !important;
    margin: 8px -10px 16px !important;
    transform: none !important;
  }

  body[data-theme="dark"]:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span,
  body[data-theme="dark"]:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span::before,
  body[data-theme="dark"]:has(.mobile-bottom-nav) .page > .container > .header .menu-btn span::after {
    background: #eef3fa !important;
  }

  body:has(main.works-showcase) .page > .container > .card-started {
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 14px !important;
  }
  body:has(main.works-showcase) .page > .container > .card-inner:has(main.works-showcase) {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}
/* Desktop panels follow the selected language instead of the fixed RTL grid. */
@media (min-width: 1200px) {
  html[dir="rtl"] body:not(:has(.blog-layout-wide)) .page > .container {
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr) !important;
    grid-template-areas: "content profile" !important;
  }
  html[dir="ltr"] body:not(:has(.blog-layout-wide)) .page > .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr) !important;
    grid-template-areas: "profile content" !important;
  }
}
/* Place the desktop side navigation on the language's inline end. */
@media (min-width: 1200px) {
  html[dir="ltr"] body:not(:has(.blog-layout-wide)) .page > .container > .header {
    left: max(14px, calc((100vw - 1268px) / 2 - 82px)) !important;
    right: auto !important;
  }
  html[dir="rtl"] body:not(:has(.blog-layout-wide)) .page > .container > .header {
    right: max(14px, calc((100vw - 1268px) / 2 - 82px)) !important;
    left: auto !important;
  }
}
@media (min-width: 1200px) {
  html[dir="ltr"] body .card-inner .content,
  html[dir="ltr"] body .card-inner .content .title,
  html[dir="ltr"] body .card-inner .content .text-box,
  html[dir="ltr"] body .card-inner .content .text-box h3,
  html[dir="ltr"] body .card-inner .content .text-box p,
  html[dir="ltr"] body .card-inner .content > p {
    text-align: left !important;
  }
}
@media (min-width: 1200px) {
  html[dir="ltr"] body:not(:has(.blog-layout-wide)) .page > .container > .card-inner {
    grid-area: content;
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    direction: ltr;
  }
}
@media (min-width: 1200px) {
  html[dir="rtl"] body:not(:has(.blog-layout-wide)) .page > .container > .card-inner {
    grid-area: content;
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    direction: rtl;
  }
  html[dir="rtl"] body:not(:has(.blog-layout-wide)) .page > .container > .card-started {
    grid-area: profile;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
  }
}
/* Keep the open floating side drawer above navigation and page overlays. */
body:has(.content-sidebar.active) .content-sidebar {
  z-index: 100100 !important;
}
@media (max-width: 1199px) {
  html[dir="ltr"] body:has(.mobile-bottom-nav) .page > .container > .header {
    direction: ltr !important;
  }
  html[dir="ltr"] body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn {
    right: 12px !important;
    left: auto !important;
  }
  html[dir="ltr"] body:has(.mobile-bottom-nav) .page > .container > .header .switcher-popup--mobile {
    right: 78px !important;
    left: auto !important;
    flex-direction: row !important;
    direction: ltr !important;
  }
  html[dir="ltr"] body:has(.mobile-bottom-nav) .page > .container > .header .profile {
    left: 12px !important;
    right: auto !important;
    inset-inline-start: 12px !important;
    grid-template-areas: "image title" "image subtitle" !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    text-align: left !important;
    direction: ltr !important;
  }
  html[dir="ltr"] body:has(.mobile-bottom-nav) .page > .container > .header .profile .image {
    grid-area: image !important;
  }
  html[dir="ltr"] body:has(.mobile-bottom-nav) .page > .container > .header .profile .title {
    grid-area: title !important;
  }
  html[dir="ltr"] body:has(.mobile-bottom-nav) .page > .container > .header .profile .subtitle {
    grid-area: subtitle !important;
  }
}
@media (max-width: 1199px) {
  html[lang^="en"] body:has(.mobile-bottom-nav) .page > .container > .header .profile {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    right: auto !important;
    inset-inline-start: 12px !important;
    width: min(250px, calc(100% - 210px)) !important;
    transform: translateY(-50%) !important;
    grid-template-areas: "image title" "image subtitle" !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    text-align: left !important;
    direction: ltr !important;
  }
  html[lang^="en"] body:has(.mobile-bottom-nav) .page > .container > .header .menu-btn {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }
  html[lang^="en"] body:has(.mobile-bottom-nav) .page > .container > .header .switcher-popup--mobile {
    position: absolute !important;
    top: 50% !important;
    right: 78px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    flex-direction: row !important;
    direction: ltr !important;
  }
}
@media (max-width: 1199px) {
  html[lang="en"] .page > .container > header.header .profile {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    right: auto !important;
    width: min(250px, calc(100% - 210px)) !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    grid-template-areas: "image title" "image subtitle" !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    text-align: left !important;
    direction: ltr !important;
  }
  html[lang="en"] .page > .container > header.header .menu-btn {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }
  html[lang="en"] .page > .container > header.header .switcher-popup--mobile {
    position: absolute !important;
    top: 50% !important;
    right: 78px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    flex-direction: row !important;
    direction: ltr !important;
  }
}
@media (max-width: 1199px) {
  .page > .container > header.header.header-ltr-mobile .profile {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    right: auto !important;
    width: min(250px, calc(100% - 210px)) !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    grid-template-areas: "image title" "image subtitle" !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    text-align: left !important;
    direction: ltr !important;
  }
  .page > .container > header.header.header-ltr-mobile .menu-btn {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }
  .page > .container > header.header.header-ltr-mobile .switcher-popup--mobile {
    position: absolute !important;
    top: 50% !important;
    right: 78px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    flex-direction: row !important;
    direction: ltr !important;
  }
}
@media (max-width: 1199px) {
  body:has(.switcher-popup--mobile a[href="?lang=ar"]) .page > .container > header.header .profile {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;
    right: auto !important;
    width: min(250px, calc(100% - 210px)) !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    grid-template-areas: "image title" "image subtitle" !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    text-align: left !important;
    direction: ltr !important;
  }
  body:has(.switcher-popup--mobile a[href="?lang=ar"]) .page > .container > header.header .menu-btn {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }
  body:has(.switcher-popup--mobile a[href="?lang=ar"]) .page > .container > header.header .switcher-popup--mobile {
    position: absolute !important;
    top: 50% !important;
    right: 78px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    flex-direction: row !important;
    direction: ltr !important;
  }
}
@media (max-width: 1199px) {
  .page > .container > header.header.header-ltr-mobile {
    display: grid !important;
    align-items: center !important;
    align-content: center !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1fr) auto 52px !important;
    grid-template-areas: "brand controls menu" !important;
    align-items: center !important;
    column-gap: 8px !important;
    box-sizing: border-box !important;
    padding-inline: 10px !important;
    direction: ltr !important;
  }
  .page > .container > header.header.header-ltr-mobile .profile {
    grid-area: brand !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    grid-template-areas: "image title" "image subtitle" !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    text-align: left !important;
    direction: ltr !important;
  }
  .page > .container > header.header.header-ltr-mobile .profile .image { grid-area: image !important; }
  .page > .container > header.header.header-ltr-mobile .profile .title { grid-area: title !important; }
  .page > .container > header.header.header-ltr-mobile .profile .subtitle { grid-area: subtitle !important; }
  .page > .container > header.header.header-ltr-mobile .switcher-popup--mobile {
    grid-area: controls !important;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    gap: 6px !important;
    margin: 0 !important;
    transform: none !important;
    flex-direction: row !important;
    direction: ltr !important;
  }
  .page > .container > header.header.header-ltr-mobile .menu-btn {
    grid-area: menu !important;
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
}
@media (max-width: 1199px) {
  .page > .container > header.header.header-ltr-mobile {
    display: grid !important;
    position: relative !important;
    inset: auto !important;
    width: min(calc(100vw - 24px), 920px) !important;
    max-width: min(calc(100vw - 24px), 920px) !important;
    margin: 8px auto 16px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand actions" !important;
    align-items: center !important;
    column-gap: 10px !important;
    padding-inline: 12px !important;
    overflow: hidden !important;
    direction: ltr !important;
  }
  .page > .container > header.header.header-ltr-mobile .header-brand {
    grid-area: brand !important;
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding-left: 10px !important;
    box-sizing: border-box !important;
  }
  .page > .container > header.header.header-ltr-mobile .mobile-site-brand {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    flex-direction: row !important;
    direction: ltr !important;
    text-align: left !important;
  }
  .page > .container > header.header.header-ltr-mobile .header-brand > .profile {
    display: none !important;
  }
  .page > .container > header.header.header-ltr-mobile .header-actions {
    grid-area: actions !important;
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    justify-self: end !important;
    gap: 8px !important;
    width: auto !important;
    min-width: max-content !important;
    margin-right: -16px !important;
  }
  .page > .container > header.header.header-ltr-mobile .header-actions .menu-btn,
  .page > .container > header.header.header-ltr-mobile .header-actions .switcher-popup--mobile {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
  .page > .container > header.header.header-ltr-mobile .header-actions .switcher-popup--mobile {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    direction: ltr !important;
  }
}
@media (max-width: 1199px) {
  body:has(.mobile-bottom-nav) .page > .container > header.header.header-ltr-mobile {
    box-sizing: border-box !important;
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    width: min(calc(100vw - 24px), 920px) !important;
    max-width: min(calc(100vw - 24px), 920px) !important;
    margin: 8px 0 16px !important;
    transform: translateX(-50%) !important;
  }
}
@media (max-width: 560px) {
  .card-inner .card-wrap {
    padding: 10px !important;
  }
}
@media (max-width: 1199px) {
  body:has(main.works-showcase) .page > .container {
    padding-inline: 0 !important;
  }
  body:has(main.works-showcase) .page > .container > header.header {
    box-sizing: border-box !important;
    width: calc(100% - 4px) !important;
    max-width: none !important;
    margin: 8px 2px 16px !important;
  }
  body:has(main.works-showcase) .page > .container > header.header.header-ltr-mobile {
    width: calc(100% - 4px) !important;
    margin: 8px 2px 16px !important;
  }
  body:has(main.works-showcase) .page > .container > .card-started {
    box-sizing: border-box !important;
    width: calc(100% - 4px) !important;
    max-width: none !important;
    margin: 0 2px 14px !important;
  }
  body:has(main.works-showcase) .page > .container > .card-inner:has(main.works-showcase) {
    box-sizing: border-box !important;
    width: calc(100% - 4px) !important;
    max-width: none !important;
    margin: 0 2px 14px !important;
  }
  body:has(main.works-showcase) .card-inner:has(main.works-showcase) .card-wrap {
    box-sizing: border-box !important;
    padding: 12px !important;
  }
  html[lang^="en"] body:has(main.works-showcase) .page > .container > .card-started {
    width: calc(100% - 4px) !important;
    margin: 0 2px 14px !important;
  }
  html[lang^="en"] body:has(main.works-showcase) .page > .container > .card-inner:has(main.works-showcase) {
    width: calc(100% - 4px) !important;
    margin: 0 2px 14px !important;
  }
}

/* Give article pages the full tablet canvas instead of squeezing them beside the profile card. */
@media (min-width: 761px) and (max-width: 1299px) {
  body:has(.blog-profile--article) .page > .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "header" "content" "profile" !important;
    align-items: start !important;
    gap: 14px !important;
    width: min(calc(100vw - 36px), 1000px) !important;
    max-width: 1000px !important;
    height: auto !important;
    margin-inline: auto !important;
    padding-block-start: 68px !important;
  }

  body:has(.blog-profile--article) .page > .container > .header { grid-area: header !important; }
  body:has(.blog-profile--article) .page > .container > .card-inner {
    position: relative !important;
    inset: auto !important;
    grid-area: content !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body:has(.blog-profile--article) .page > .container > .card-started {
    position: relative !important;
    inset: auto !important;
    grid-area: profile !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body:has(.blog-profile--article) .card-started > .profile.page-profile.blog-profile--article:not(.page-profile--home) .image:has(> .page-profile-icon) {
    margin: 0 auto !important;
  }
}
