/* Original WordPress About / Profile block, adapted only for the V1 page shell. */
.mcrm-about,
.mcrm-about * {
  box-sizing: border-box;
}

.mcrm-about {
  min-height: 920px;
  padding: 120px 24px 0;
  overflow: hidden;
  background: #06040c;
  color: #fff;
}

.mcrm-about__inner {
  max-width: 1203px;
  margin: 0 auto;
}

.mcrm-about__quote {
  position: relative;
  width: 361px;
  margin: 0 475px 47px auto;
  color: rgba(255, 255, 255, .55);
  font: italic 400 14px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: right;
}

.mcrm-about__quote::after,
.mcrm-about__note::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  display: block;
  width: 324px;
  height: 43px;
  background: url('/assets/images/source/icon-gradient-about.webp') right center / 100% auto no-repeat;
}

.mcrm-about__card {
  position: relative;
  width: 100%;
  max-width: 1150px;
  height: 535px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  padding: 48px;
  isolation: isolate;
  border: 1.85px solid transparent;
  border-radius: 26px;
  background-image:
    linear-gradient(270deg, #e05a2a -100.03%, #3e054d 100%),
    linear-gradient(325.7deg, #d76c2c -4.45%, #ab359c 137.3%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  backdrop-filter: blur(2px);
}

/* The original WordPress component was sized as content-box. The site-wide
   border-box reset otherwise removes 96px from its internal layout. */
@media (min-width: 1025px) {
  .mcrm-about__card {
    box-sizing: content-box;
  }
}

.mcrm-about__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .6));
}

.mcrm-about__content {
  position: relative;
  z-index: 45;
}

.mcrm-about__name {
  height: 52px;
  margin: 0 0 20px;
  color: #fff;
  font: 800 38px/1 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.mcrm-about__role {
  min-height: 33px;
  color: transparent;
  background: linear-gradient(90deg, #f87549 0%, #d2532d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font: 800 24px/1 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.mcrm-about__text {
  width: 571px;
  height: auto;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  color: #ada1ad;
  font: 400 15px/1.55 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.mcrm-about__text p {
  margin: 0;
}

.mcrm-about__text strong {
  color: rgba(255,255,255,.86);
  font-weight: 700;
}

.mcrm-about__list {
  height: auto;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mcrm-about__list li {
  position: relative;
  box-sizing: content-box;
  max-width: 450px;
  padding-left: 34px;
  list-style: none;
  color: rgba(255,255,255,.76);
  font: 600 15px/1.5 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.mcrm-about__list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 20px;
  height: 20px;
  background: url('/assets/images/source/icon-check-about.webp') center / contain no-repeat;
}

.photo_men_section_about {
  position: absolute;
  right: -200px;
  bottom: 0;
  z-index: 100;
  width: 1150px;
  max-width: none;
  height: auto;
  image-rendering: auto;
  pointer-events: none;
}

.bkg_line_section_about {
  position: absolute;
  top: 0;
  right: -40px;
  z-index: 45;
  pointer-events: none;
}

.container_about_socials_note {
  width: 100%;
  padding: 25px 59px 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 645px);
  align-items: flex-start;
  justify-content: space-between;
}

.mcrm-about__socials {
  padding-top: 16px;
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  gap: 28px;
}

.mcrm-about__social {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font: 400 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.mcrm-about__social:hover {
  color: #fff;
}

.icon_social_link {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 205, 187, .62);
  border-radius: 7px;
  background: linear-gradient(135deg, #dc56a2 0%, #f1746a 58%, #ff9454 100%);
  box-shadow: 0 5px 18px rgba(224, 90, 42, .42), 0 0 16px rgba(216, 58, 170, .3), inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.icon_social_link svg {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.icon_social_link path {
  fill: #050308;
}

.icon_social_link--instagram rect,
.icon_social_link--instagram circle {
  fill: none;
  stroke: #050308;
  stroke-width: 2.35;
}

.mcrm-about__note {
  position: relative;
  width: 100%;
  max-width: 645px;
  margin: 0;
  justify-self: end;
  color: rgba(255, 255, 255, .55);
  font: italic 600 15px/24px Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}

.mcrm-about__note::after {
  right: 50%;
  transform: translateX(50%);
}

@media (max-width: 1024px) {
  .mcrm-about {
    min-height: 900px;
    padding: 80px 20px 30px;
  }

  .mcrm-about__quote {
    right: -150px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 40px;
  }

  .mcrm-about__quote::after {
    right: 36%;
    transform: translateX(50%);
  }

  .mcrm-about__card {
    max-width: 680px;
    height: 605px;
    margin: 0 auto;
    padding: 40px 32px;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .mcrm-about__content {
    max-width: 60%;
    z-index: 60;
  }

  .mcrm-about__text {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 50px;
  }

  .mcrm-about__list li {
    width: 300px;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.8;
  }

  .photo_men_section_about {
    right: -300px;
    width: 840px;
  }

  .bkg_line_section_about {
    top: 0;
    right: -300px;
    width: 100%;
  }

  .container_about_socials_note {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .mcrm-about__note {
    left: 3%;
    order: 1;
    max-width: 652px;
    text-align: center;
  }

  .mcrm-about__note::after {
    right: 28%;
    transform: translateX(50%);
  }

  .mcrm-about__socials {
    order: 2;
    margin-top: 50px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .mcrm-about {
    position: relative;
    min-height: 0;
    padding: 64px 16px 0;
  }

  .mcrm-about::after {
    content: "";
    position: absolute;
    /* Align the visible centre of the decorative line with the painted
       bottom edge of the scaled portrait. */
    top: 242px;
    left: 50%;
    right: auto;
    z-index: 94;
    width: min(340px, calc(100vw - 32px));
    height: 46px;
    transform: translateX(-50%);
    background: url('/assets/images/source/line-title.webp') center / 100% 100% no-repeat;
    pointer-events: none;
  }

  .mcrm-about__quote {
    display: none;
  }

  .mcrm-about__quote::after { display: none; }

  .mcrm-about__card {
    position: relative;
    left: 50%;
    width: 340px;
    max-width: calc(100vw - 32px);
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 20px 18px 28px;
    display: flex;
    overflow: visible;
    transform: translateX(-50%);
    border-radius: 24px;
  }

  .photo_men_section_about {
    top: -70px;
    right: -178px;
    bottom: auto;
    z-index: 95;
    width: 500px;
    height: 300px;
    clip-path: inset(0 162px 0 0);
    transform: scale(.8);
    object-fit: cover;
    object-position: top;
  }

  .bkg_line_section_about {
    top: 0;
    right: 0;
    z-index: 4;
    width: 100%;
  }

  .mcrm-about__content {
    position: relative;
    z-index: 10;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .mcrm-about__name {
    position: relative;
    top: 22px;
    left: 4%;
    font-size: 24px;
  }

  .mcrm-about__role {
    position: relative;
    left: 4%;
    width: 145px;
    min-height: 73px;
    font-size: 16px;
    line-height: 1.8;
  }

  .mcrm-about__text {
    position: relative;
    left: 4%;
    z-index: 95;
    width: 96%;
    min-width: 0;
    max-width: none;
    /* Keep a compact 32px visual gap below the portrait divider. */
    margin-top: 67px;
    gap: 8px;
    font-size: 13px;
    line-height: 1.55;
  }

  .mcrm-about__list {
    position: relative;
    left: 4%;
    width: 96%;
    min-width: 0;
    max-width: none;
    margin-top: 22px;
    gap: 12px;
  }

  .mcrm-about__list li {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  .mcrm-about__list li::before {
    top: 1px;
  }

  .container_about_socials_note {
    width: 100%;
    padding: 24px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mcrm-about__note {
    display: none;
  }

  .mcrm-about__note::after { display: none; }

  .mcrm-about__socials {
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    order: 2;
  }

  .mcrm-about__social {
    gap: 6px;
    font-size: 13px;
  }

  .icon_social_link {
    position: relative;
    top: auto;
    left: auto;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    transform: none;
  }

  .mcrm-about__social--linkedin { order: 1; }
  .mcrm-about__social--facebook { order: 2; }
  .mcrm-about__social--instagram { order: 3; }

}

/* Preserve the legacy composition on standard mobile widths while allowing
   the same content to reflow safely on compact 320–360px screens. */
@media (max-width: 360px) {
  .mcrm-about__content {
    width: 100%;
    max-width: none;
  }

  .mcrm-about__text,
  .mcrm-about__list {
    min-width: 0;
    max-width: calc(100vw - 80px);
  }

  .mcrm-about__socials {
    gap: 12px;
  }

  .mcrm-about__social {
    gap: 4px;
    font-size: 11px;
  }
}
