/* XL Maths homepage portrait: mobile-only layout correction. */
@media (max-width: 820px) {
  .about-section .about-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 54px;
  }

  .about-section .about-portrait {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 0 38px;
  }

  .about-section .portrait-board {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 15px;
  }

  .about-section .portrait-placeholder {
    position: absolute;
    inset: 24px 24px 0;
    display: block;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
  }

  .about-section .portrait-placeholder img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }

  .about-section .experience-badge {
    right: auto;
    bottom: 0;
    left: 50%;
    width: min(290px, calc(100% - 24px));
    min-height: 72px;
    justify-content: center;
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .about-section .about-layout {
    gap: 48px;
  }

  .about-section .about-portrait {
    max-width: 420px;
    padding-bottom: 36px;
  }

  .about-section .portrait-placeholder {
    inset: 18px 18px 0;
  }

  .about-section .experience-badge {
    min-height: 68px;
    padding: 14px 16px;
  }

  .about-section .experience-badge strong {
    font-size: 28px;
  }
}
