/* Mobile schedule: keep every row inside the viewport and use the same columns
   for the date/title and format/price pairs. */
@media (max-width: 991px) {
  html body .schedule-section-mobile .schedule-section {
    box-sizing: border-box !important;
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  html body .schedule-section-mobile .schedule-main-classes {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(108px, .95fr) minmax(0, 1.6fr) 28px !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body .schedule-section-mobile .schedule-main-classes .date-wrap {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  html body .schedule-section-mobile .schedule-main-classes .schedule-course-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }

  html body .schedule-section-mobile .schedule-main-classes .schedule-toggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: start !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }

  html body .schedule-section-mobile .schedule-main-classes .div-block-40 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
  }

  html body .schedule-section-mobile .schedule-main-classes .div-block-67,
  html body .schedule-section-mobile .schedule-main-classes .price-pill {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
  }

  html body .schedule-section-mobile .schedule-main-classes .schedule-course-price {
    white-space: nowrap !important;
  }

  /* The Webflow export assigns the toggle an area beyond the third column. */
  html body .schedule-section-mobile #w-node-aba6df65-1ca3-b153-c3cc-17f29f83d795-28fbad14 {
    grid-area: 1 / 3 / 2 / 4 !important;
    order: initial !important;
    place-self: start end !important;
  }

  html body .schedule-section-mobile,
  html body .schedule-section-mobile [udy-collection="schedule"],
  html body .schedule-section-mobile [data-hth-schedule-list],
  html body .schedule-section-mobile [data-hth-schedule-item] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html body .schedule-section-mobile .schedule-main-classes > * {
    box-sizing: border-box !important;
    width: auto;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body .schedule-section-mobile .schedule-main-classes {
    margin: 0 !important;
    padding: 40px 0 0 !important;
    border: 0;
  }
  html body .schedule-section-mobile .date-wrap {
    gap: 8px;
    white-space: nowrap;
    font-size: 16px;
  }
  html body .schedule-section-mobile .div-block-39 { width: 8px; height: 8px; margin: 0; }
  html body .schedule-section-mobile .schedule-course-name {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    white-space: normal;
    height: auto;
  }
  html body .schedule-section-mobile .schedule-main-classes .div-block-40 {
    border: 0;
    justify-content: flex-start !important;
  }
  html body .schedule-section-mobile .schedule-main-classes .div-block-40 .schedule-course-format,
  html body .schedule-section-mobile .schedule-course-price {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    text-align: left !important;
  }
  html body .schedule-section-mobile .schedule-toggle {
    position: relative;
    display: flex;
    border: 1px solid var(--greeeey, #3c3c3c);
    cursor: pointer;
  }
  html body .schedule-section-mobile .toggle-iconplus-wrap,
  html body .schedule-section-mobile .toggle-iconminus-wrap {
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: center;
  }
  html body .schedule-section-mobile .schedule-details {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  html body .schedule-section-mobile .details-content { margin: 20px 0 0; }
  html body .schedule-section-mobile .course-description,
  html body .schedule-section-mobile .link-block-course1 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  html body .schedule-section-mobile .schedule-divider {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  html body .schedule-section-mobile .form-5,
  html body .schedule-section-mobile .schedule-search-input {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body .schedule-section-mobile .hth-schedule-pagination {
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body .schedule-section-mobile .hth-schedule-more {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body .trainingcentre-herosection { height: auto; }
  html body .trainingcentre-herosection .trainingcentre-hero-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
  html body .trainingcentre-herosection .trainingcentrehero {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 40px;
  }
  html body .trainingcentre-herosection .trainingcentre-hero-text1 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  html body .trainingcentre-herosection .tr-centre-hero1 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: anywhere;
  }
  html body .trainingcentre-herosection .trainingcentre-button1 {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }
}
