/*
 ASEMANEEHA PHASE 287
 Mobile-only targeted adjustments.
*/

@media (max-width: 640px) {

  /*
   Home title:
   One line, fluid font, preserve available width.
  */
  .asem-home-responsive-223
  .flex:has(> .asem-home-title-223) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    box-sizing: border-box !important;
  }

  .asem-home-responsive-223
  .asem-home-title-223 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;

    font-size: clamp(11px, 3.05vw, 15px) !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    letter-spacing: -0.25px !important;

    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: center !important;
  }

  /*
   Organization title:
   Keep each of the two existing spans on its own line.
   Do not split either span internally.
  */
  .asem-home-responsive-223
  .flex.flex-1.flex-col.items-end.justify-end.text-white:has(
    > span.font-benazanin
  ) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 2px !important;

    min-width: 0 !important;
    max-width: 100% !important;
  }

  .asem-home-responsive-223
  .flex.flex-1.flex-col.items-end.justify-end.text-white
  > span.font-benazanin {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;

    font-size: clamp(11px, 3vw, 15px) !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.2px !important;

    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: right !important;
  }

  /*
   Six-card section:
   Reduce oversized bottom padding without
   changing the cards' grid columns or images.
  */
  .asem-home-responsive-223
  .relative.mt-8.grid[class*="icons-bg"] {
    padding-bottom: 36px !important;
    box-sizing: border-box !important;
  }

}

@media (max-width: 380px) {

  .asem-home-responsive-223
  .asem-home-title-223 {
    font-size: 10.5px !important;
  }

  .asem-home-responsive-223
  .flex.flex-1.flex-col.items-end.justify-end.text-white
  > span.font-benazanin {
    font-size: 10.5px !important;
  }

}