/* ============================================================
   OUTSKIRT — /recruitment/ (page 365) mobile-first redesign.
   Marketing sections become the v2 card language: requirement
   cards in a swipe strip, steps as a compact timeline. The
   Forminator form + clan picker are untouched (already mobile-
   friendly). Desktop (≥768px) keeps the original layout.
   ============================================================ */

@media (max-width: 767px) {

  /* ---------- global rhythm ---------- */
  body.page-id-365 .content-section-spacing {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  body.page-id-365 .content-section h2,
  body.page-id-365 #steps h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  body.page-id-365 .header-wrapper h1 {
    font-size: clamp(28px, 10.5vw, 42px);
    line-height: 1.12;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  body.page-id-365 p:empty { display: none; }

  /* ---------- What We Look For → swipe strip ---------- */
  body.page-id-365 #recruitments .row.spaced-cols {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: stretch;
    gap: 10px;
    padding: 6px 7vw 16px;
    margin: 0 !important;
  }
  body.page-id-365 #recruitments .row.spaced-cols::-webkit-scrollbar { display: none; }
  body.page-id-365 #recruitments .row.spaced-cols::before,
  body.page-id-365 #recruitments .row.spaced-cols::after { content: none !important; display: none !important; }
  body.page-id-365 #recruitments .row.spaced-cols > [class*="col-"] {
    flex: 0 0 84% !important;
    width: 84% !important;
    max-width: 84% !important;
    min-width: 0;
    scroll-snap-align: center;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.page-id-365 #recruitments .card.row-card {
    height: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07) !important;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    padding: 16px;
    margin: 0;
  }
  /* icon + title inline, text below */
  body.page-id-365 #recruitments .card.row-card > .row {
    display: block !important;
  }
  body.page-id-365 #recruitments .icon-column {
    float: left;
    margin: 0 10px 4px 0;
    padding: 0;
    width: auto;
  }
  body.page-id-365 #recruitments .icon-column .fa.icon.round {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 17px;
  }
  body.page-id-365 #recruitments h5 {
    font-size: 14.5px;
    line-height: 1.25;
    margin: 0 0 8px;
    padding-top: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  body.page-id-365 #recruitments .card p {
    clear: both;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    text-align: left;
  }
  /* swipe hint under the section title (site-wide pattern) */
  body.page-id-365 #recruitments .section-title-col::after {
    content: "\2039\0020swipe\0020\203A";
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    opacity: .55;
    letter-spacing: .14em;
    margin-top: 4px;
  }

  /* ---------- Steps to Apply → compact timeline ---------- */
  body.page-id-365 #steps .row[data-type="row"] {
    display: block !important;
    padding: 0 8px;
  }
  body.page-id-365 #steps .row[data-type="row"] > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 2px 14px;
    text-align: left !important;
    padding: 0 0 6px !important;
    margin: 0 !important;
    position: relative;
  }
  body.page-id-365 #steps .row[data-type="row"] > [class*="col-"]::before,
  body.page-id-365 #steps .row[data-type="row"] > [class*="col-"]::after { content: none !important; }
  body.page-id-365 #steps .number-container {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0;
    align-self: start;
  }
  body.page-id-365 #steps .link-line { display: none !important; }
  body.page-id-365 #steps .number {
    width: 40px;
    height: 40px;
    font-size: 17px;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
  }
  body.page-id-365 #steps .number span { line-height: 1 !important; font-size: 17px !important; }
  /* vertical connector between steps */
  body.page-id-365 #steps .row[data-type="row"] > [class*="col-"]:not(:last-child)::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 2px;
    width: 2px;
    background: rgba(0, 0, 0, .08);
  }
  body.page-id-365 #steps .number-container ~ *,
  body.page-id-365 #steps [class*="col-"] > h6,
  body.page-id-365 #steps [class*="col-"] > h5,
  body.page-id-365 #steps [class*="col-"] > h4,
  body.page-id-365 #steps [class*="col-"] > p,
  body.page-id-365 #steps [class*="col-"] > div:not(.number-container) {
    grid-column: 2;
  }
  body.page-id-365 #steps h6, body.page-id-365 #steps h5, body.page-id-365 #steps h4 {
    font-size: 14px;
    margin: 8px 0 4px;
    text-align: left;
  }
  body.page-id-365 #steps p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px;
    text-align: left;
  }
}
