/* ==========================================================================
   Hands-on Page Styles
   Based on src/pages/2025/hands-on/index.page.tsx
   ========================================================================== */

/* Page Title */
.page-title {
  font-size: 100px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
  padding: 220px 60px 40px;
  background: #000 url('../../img/key-visuals/img_sub_key_visual_handson.jpg')
    center right/auto 100% no-repeat;
}

/* Hands-on Section */
.handson-section {
  padding: 140px 0 100px;
  background-color: #e7e7e7;
}

.handson-section__inner {
  max-width: 1190px;
  margin: 0 auto;
  word-break: keep-all;
}

.handson-section__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  white-space: pre-line;
}

/* Hands-on List */
.handson-list {
  margin-top: 60px;
}

/* Time Slot */
.handson-time-slot {
  display: flex;
  gap: 0 12px;
}

.handson-time-slot:not(:first-of-type) {
  margin-top: 12px;
}

.handson-time-slot__time {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 141px;
  background: #000;
  border-radius: 16px;
  font-family: '42dotSansOTF', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
}

.handson-time-slot__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px 0;
}

/* Hands-on Item */
.handson-item {
  display: flex;
  position: relative;
  background: #fff;
  min-width: 0;
  border-radius: 16px;
  color: #000;
  word-break: keep-all;
  width: 100%;
  align-items: center;
  padding: 27px 40px;
}

/* Badge */
.handson-item__badge {
  margin: 0 14px 0 0;
  padding: 4px 0;
  min-width: 128px;
  text-align: center;
  border-radius: 5px;
  background: #2350ff;
  color: #fff;
  flex-shrink: 0;
  font-family: '42dotSansOTF', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.handson-item__badge-subject {
  font-weight: 700;
}

/* Title */
.handson-item__title {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  flex: 1;
  width: 100%;
  max-width: 670px;
  align-self: center;
  margin-right: 28px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: keep-all;
  font-family: '42dotSansOTF', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

/* Link Button */
.handson-item__link {
  display: flex;
  align-items: center;
  gap: 0 6px;
  margin-left: auto;
  color: #000;
  text-decoration: none;
  font-family: '42dotSansOTF', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.handson-item__link--disabled {
  color: #c8c8c8;
  pointer-events: none;
}

.handson-item__link i {
  display: inline-block;
  width: 12px;
  height: 14px;
}

/* ==========================================================================
   Tablet Responsive (768px - 1200px)
   ========================================================================== */
@media screen and (max-width: 1200px) and (min-width: 768px) {
  .page-title {
    font-size: calc(100 / 1200 * 100vw);
    padding: calc(220 / 1200 * 100vw) calc(60 / 1920 * 100vw)
      calc(40 / 1200 * 100vw);
  }

  .handson-section {
    padding: calc(140 / 1200 * 100vw) calc(60 / 1920 * 100vw)
      calc(100 / 1200 * 100vw);
  }

  .handson-section__title {
    margin-bottom: calc(80 / 1200 * 100vw);
    font-size: calc(36 / 1200 * 100vw);
  }

  .handson-list {
    margin-top: calc(60 / 1200 * 100vw);
  }

  .handson-time-slot {
    gap: 0 calc(12 / 1200 * 100vw);
  }

  .handson-time-slot:not(:first-of-type) {
    margin-top: calc(12 / 1200 * 100vw);
  }

  .handson-time-slot__time {
    min-width: calc(141 / 1200 * 100vw);
    border-radius: calc(16 / 1200 * 100vw);
    font-size: calc(16 / 1200 * 100vw);
  }

  .handson-time-slot__content {
    gap: calc(12 / 1200 * 100vw) 0;
  }

  .handson-item {
    border-radius: calc(16 / 1200 * 100vw);
    padding: calc(27 / 1200 * 100vw) calc(40 / 1200 * 100vw);
  }

  .handson-item__badge {
    margin: calc(5 / 1200 * 100vw) calc(14 / 1200 * 100vw) 0 0;
    padding: calc(4 / 1200 * 100vw) 0;
    min-width: calc(128 / 1200 * 100vw);
    border-radius: calc(5 / 1200 * 100vw);
    font-size: calc(13 / 1200 * 100vw);
  }

  .handson-item__title {
    max-width: calc(670 / 1200 * 100vw);
    margin-right: calc(28 / 1200 * 100vw);
    font-size: calc(17 / 1200 * 100vw);
  }

  .handson-item__link {
    gap: 0 calc(6 / 1200 * 100vw);
    font-size: calc(16 / 1200 * 100vw);
  }

  .handson-item__link i {
    width: calc(12 / 1200 * 100vw);
    height: calc(14 / 1200 * 100vw);
  }
}

/* ==========================================================================
   Mobile Responsive (max-width: 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
  .page-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.01em;
    padding: 155px 20px 10px;
    background: #000
      url('../../img/key-visuals/img_sub_key_visual_handson_mo.jpg') center/auto
      100% no-repeat;
  }

  .handson-section {
    padding: 60px 20px;
  }

  .handson-section__title {
    margin-bottom: 40px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.27;
    letter-spacing: -0.01em;
    white-space: normal;
  }

  .handson-time-slot {
    flex-direction: column;
    gap: 10px 0;
  }

  .handson-time-slot:not(:first-of-type) {
    margin-top: 20px;
  }

  .handson-time-slot__time {
    justify-content: initial;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: '42dotSansOTF', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
  }

  .handson-time-slot__content {
    gap: 10px;
  }

  .handson-item {
    border-radius: 14px;
    padding: 26px 20px;
    flex-direction: column;
    gap: 10px 0;
    align-items: baseline;
  }

  .handson-item__badge {
    margin: 0;
    padding: 4px 0;
    min-width: 115px;
  }

  .handson-item__title {
    max-width: 100%;
    margin: 0 !important;
    font-family: '42dotSansOTF', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.01em;
  }

  .handson-item__link {
    margin: 0;
    font-family: '42dotSansOTF', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
  }

  .handson-item__link i {
    width: 12px;
    height: 14px;
  }
}

/* ========================================
   Footer Background Color Override
   ======================================== */
.footer-container {
  background-color: #e7e7e7;
}
