/* ============================================================
   TRAINING CENTRE
   ============================================================ */

.venue-training-zone {
  width: var(--venue-world-width);
  min-width: var(--venue-world-width);

  background: #fff;

  border-top: 1px solid #efb762;
}


/* ============================================================
   MAIN WALKWAY BETWEEN UPPER VENUE AND TRAINING CENTRE
   ============================================================ */

.venue-main-walkway {
  width: 100%;
  height: 170px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fffaf3;

  color: #bc792a;

  font-size: 0.78rem;
  font-weight: 900;

  letter-spacing: 0.15em;

  text-transform: uppercase;

  border-bottom:
    1px solid rgba(239, 183, 98, 0.45);
}


/* ============================================================
   TRAINING AREA
   ============================================================ */

.training-area {
  position: relative;

  width: 100%;

  padding:
    40px
    55px
    0px;

  background: #fff;

  box-sizing: border-box;
}


/* ============================================================
   HEADER
   ============================================================ */

.training-area__header {
  margin-bottom: 30px;
}


.training-area__eyebrow {
  color: orangered;

  font-size: 0.72rem;
  font-weight: 900;

  letter-spacing: 0.16em;
}


.training-area__title {
  margin:
    5px 0
    7px;

  font-size: 2rem;
}


.training-area__description {
  margin: 0;

  color: #777;
}


/* ============================================================
   INTERNAL MAIN AVENUE
   ============================================================ */

.training-area__main-avenue {
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 35px;

  background: #fffaf3;

  border-top:
    1px dashed #e5cfac;

  border-bottom:
    1px dashed #e5cfac;

  color: #bd8242;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* ============================================================
   FOUR ESTABLISHED MODULES + ADDITIVE VOCATIONAL ROW
   ============================================================ */

.training-area__modules {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 50px;

  align-items: start;

  width: 100%;
}

.training-module[data-training-module-key="vocational_textile"] {
  grid-column: 1 / -1;

  background: #fff8f4;
  border-color: rgba(255, 75, 31, 0.32);
}

.training-module[data-training-module-key="vocational_textile"]
  .training-module__rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}


/* ============================================================
   MODULE
   ============================================================ */

.training-module {
  min-width: 0;

  padding: 20px;

  background: white;

  border:
    0px solid rgba(239, 183, 98, 0.35);

  border-radius: 18px;
}


.training-module__header {
  display: flex;
  flex-direction: column;

  gap: 3px;

  margin:
    0 0
    18px;

  padding-left: 5px;
}


.training-module__header span {
  color: orangered;

  font-size: 0.68rem;

  font-weight: 900;

  letter-spacing: 0.13em;
}


.training-module__header strong {
  color: #3d3d3d;

  font-size: 1rem;
}


/* ============================================================
   THREE LEVELS PER MODULE
   ============================================================ */

.training-module__rooms {
  display: flex;

  flex-direction: column;

  gap: 65px;
}


/* ============================================================
   TRAINING ROOM
   ============================================================ */

.training-room {
  position: relative;

  width: 100%;
  height: 610px;

  background: #f8f5ef;

  overflow: hidden;
}


/* ============================================================
   THIN WALLS
   ============================================================ */

.training-room__wall {
  position: absolute;

  z-index: 30;

  background: #d4bea0;
}


/* LEFT */

.training-room__wall--left {
  left: 0;
  top: 0;

  width: 7px;
  height: 100%;
}


/* RIGHT */

.training-room__wall--right {
  right: 0;
  top: 0;

  width: 7px;
  height: 100%;
}


/* BOTTOM */

.training-room__wall--bottom {
  left: 0;
  bottom: 0;

  width: 100%;
  height: 7px;
}


/* TOP LEFT */

.training-room__wall--top-left {
  top: 0;
  left: 0;

  width: calc(50% - 80px);
  height: 7px;
}


/* TOP RIGHT */

.training-room__wall--top-right {
  top: 0;
  right: 0;

  width: calc(50% - 80px);
  height: 7px;
}


/* ============================================================
   CENTRAL ENTRANCE
   ============================================================ */

.training-room__door {
  position: absolute;

  top: 0;
  left: 50%;

  width: 160px;
  height: 60px;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #a66b25;

  font-size: 0.68rem;

  font-weight: 800;

  pointer-events: none;

  z-index: 25;
}


/* ============================================================
   ROOM SIGN
   ============================================================ */

.training-room__sign {
  position: absolute;

  left: 30px;
  top: 27px;

  z-index: 20;

  display: flex;

  flex-direction: column;

  gap: 2px;
}


.training-room__sign strong {
  color: #333;

  font-size: 0.95rem;
}


.training-room__sign span {
  color: #888;

  font-size: 0.68rem;
}


/* ============================================================
   SCREEN
   ============================================================ */

.training-room__screen {
  position: absolute;

  top: 85px;
  left: 50%;

  width: 260px;
  height: 62px;

  transform:
    translateX(-50%);

  padding: 6px;

  background: #3d454a;

  border-radius: 6px;

  z-index: 10;
}


.training-room__screen-surface {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;

  background: #dceef4;

  color: #48616a;

  font-size: 0.72rem;

  font-weight: 700;
}

.training-room__screen-surface strong {
  font-size: 0.72rem;
}

.training-room__screen-surface span {
  color: #284751;
  font-size: 0.58rem;
  font-weight: 800;
}

.training-room__course-alert {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  display: grid;
  width: 220px;
  gap: 1px;
  padding: 5px 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 75, 31, 0.4);
  border-radius: 7px;
  background: rgba(255, 248, 244, 0.97);
  color: #7c2d12;
  text-align: left;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
}

.training-room__course-alert small {
  color: #c2410c;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.training-room__course-alert span {
  overflow: hidden;
  color: #7c2d12;
  font-size: 0.55rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-room__screen:has(.live-session--screen) {
  box-shadow:
    0 0 0 2px rgba(255, 75, 31, 0.55),
    0 0 18px rgba(255, 75, 31, 0.34);
}


/* ============================================================
   TRAINER DESK
   ============================================================ */

.training-room__trainer-desk {
  position: absolute;

  top: 175px;
  left: 50%;

  width: 165px;
  height: 44px;

  transform:
    translateX(-50%);

  display: flex;

  align-items: center;
  justify-content: center;

  background: #aa7b4c;

  border-radius: 6px;

  color: white;

  font-size: 0.7rem;

  font-weight: 700;
}


/* ============================================================
   TABLES
   ============================================================ */

.training-room__table {
  position: absolute;

  width: 195px;
  height: 64px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #d8ab6c;

  border-radius: 14px;

  color: #6c481d;

  font-size: 0.68rem;

  font-weight: 700;
}


.training-room__table--1 {
  left: 90px;
  top: 300px;
}


.training-room__table--2 {
  right: 90px;
  top: 300px;
}


.training-room__table--3 {
  left: 90px;
  top: 440px;
}


.training-room__table--4 {
  right: 90px;
  top: 440px;
}


/* ============================================================
   CHAIRS
   ============================================================ */

.training-room__chair {
  position: absolute;

  width: 31px;
  height: 31px;

  background: #705846;

  border-radius:
    7px 7px
    14px 14px;
}


.training-room__chair--1 {
  left: 170px;
  top: 260px;
}

.training-room__chair--2 {
  left: 170px;
  top: 370px;
}

.training-room__chair--3 {
  right: 170px;
  top: 260px;
}

.training-room__chair--4 {
  right: 170px;
  top: 370px;
}

.training-room__chair--5 {
  left: 170px;
  top: 400px;
}

.training-room__chair--6 {
  left: 170px;
  top: 515px;
}

.training-room__chair--7 {
  right: 170px;
  top: 400px;
}

.training-room__chair--8 {
  right: 170px;
  top: 515px;
}


/* ============================================================
   CABINET
   ============================================================ */

.training-room__cabinet {
  position: absolute;

  top: 85px;
  right: 28px;

  width: 82px;
  height: 125px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #b4936a;

  border-radius: 5px;

  color: white;

  font-size: 0.62rem;
}


/* ============================================================
   WHITEBOARD
   ============================================================ */

.training-room__whiteboard {
  position: absolute;

  left: 28px;
  top: 90px;

  width: 120px;
  height: 75px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: white;

  border:
    3px solid #bbb;

  border-radius: 4px;

  color: #777;

  font-size: 0.62rem;
}

.training-room__whiteboard-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: inherit;
  text-decoration: none;
}

.training-room__whiteboard-link:hover,
.training-room__whiteboard-link:focus-visible {
  color: #1d4ed8;
  background: #eff6ff;
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

.training-room__whiteboard-link i {
  font-size: .72rem;
}

.training-room__whiteboard-link--locked {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: .7;
}

.training-room__whiteboard-link--locked:hover,
.training-room__whiteboard-link--locked:focus-visible {
  color: #94a3b8;
  background: #f8fafc;
  outline: none;
}


/* ============================================================
   WALKING FLOOR
   ============================================================ */

.training-room__walking-floor {
  position: absolute;

  inset: 7px;

  pointer-events: none;
}


/* ============================================================
   BETWEEN-LEVEL WALKING SPACE
   ============================================================ */

.training-module__rooms {
  position: relative;
}


/*
 * The gap between rooms is intentionally
 * completely collision-free.
 */


/* ============================================================
   BOTTOM AVENUE
   ============================================================ */

.training-area__bottom-avenue {
  width: 100%;
  height: 140px;

  margin-top: 55px;

  border-top:
    1px dashed #e5cfac;

  background: #fffaf3;
}

/* ============================================================
   LOCKED TRAINING LEVELS
   ============================================================ */

.training-room--locked {
  position: relative;

  overflow: hidden;

  cursor: not-allowed;

  background:
    linear-gradient(
      145deg,
      rgba(248, 250, 252, 0.98),
      rgba(241, 245, 249, 0.98)
    );

  border:
    1px solid rgba(15, 23, 42, 0.12);
}


/* ============================================================
   LOCK OVERLAY
   ============================================================ */

.training-room__locked-overlay {
  width: 100%;
  min-height: 100%;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 0.45rem;

  padding: 1.4rem;

  text-align: center;

  color:
    rgba(15, 23, 42, 0.72);
}


.training-room__lock-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  margin-bottom: 0.3rem;

  border-radius: 50%;

  background:
    rgba(15, 23, 42, 0.08);

  color:
    #172033;

  font-size: 1.05rem;
}


.training-room__locked-level {
  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color:
    rgba(15, 23, 42, 0.48);
}


.training-room__locked-overlay strong {
  font-size: 1rem;

  color: #172033;
}


.training-room__locked-overlay p {
  max-width: 250px;

  margin: 0;

  font-size: 0.78rem;

  line-height: 1.5;
}


.training-room__locked-overlay small {
  display: block;

  max-width: 260px;

  margin-top: 0.25rem;

  font-size: 0.68rem;

  line-height: 1.45;

  color:
    rgba(15, 23, 42, 0.48);
}


/* ============================================================
   LOCKED ROOM VISUAL FEEDBACK
   ============================================================ */

.training-room--locked::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 9px,
      rgba(15, 23, 42, 0.018) 9px,
      rgba(15, 23, 42, 0.018) 18px
    );
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .training-room__locked-overlay {
    padding: 1rem;
  }


  .training-room__lock-icon {
    width: 40px;
    height: 40px;
  }


  .training-room__locked-overlay p {
    font-size: 0.74rem;
  }

}


/* ============================================================
   COLLISION DEBUGGING
   Uncomment temporarily if needed.
   ============================================================ */

/*
[data-collision] {
  outline: 2px solid red !important;
}
*/

/* ============================================================
   TRAINING ROOM PUBLIC DISPLAY
   ============================================================ */



.training-room__public-link {
  color: inherit;
  text-decoration: none;
}

.training-room__public-link:hover,
.training-room__public-link:focus-visible {
  color: #2563eb;
  text-decoration: underline;
}


/* ============================================================
   PUBLISHED PROGRAMME LAYER
   ============================================================ */

.training-room__programme-layer {
  position: absolute;

  top: 28px;
  right: 18px;
  bottom: 20px;

  z-index: 18;

  width: 31%;
  min-width: 225px;

  display: flex;
  flex-direction: column;

  padding: 18px;

  overflow: hidden;

  pointer-events: none;

  background:
    rgba(255, 255, 255, 0.94);

  border:
    1px solid rgba(37, 99, 235, 0.2);

  border-radius: 16px;

  box-shadow:
    0 14px 35px rgba(15, 23, 42, 0.12);

  box-sizing: border-box;
}

.training-room__programme-layer--coming-soon {
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  border-style: dashed;
}

.training-room__programme-placeholder {
  margin: 14px 0 0;
  color: #52627a;
  font-size: 0.68rem;
  line-height: 1.5;
}


.training-room__programme-header {
  display: flex;
  flex-direction: column;

  gap: 4px;

  padding-bottom: 12px;

  border-bottom:
    1px solid rgba(148, 163, 184, 0.24);
}


.training-room__programme-header span {
  color: #2563eb;

  font-size: 0.58rem;
  font-weight: 900;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.training-room__programme-header strong {
  color: #172033;

  font-size: 0.76rem;
  line-height: 1.35;
}


.training-room__programme-list {
  display: flex;
  flex-direction: column;

  gap: 9px;

  margin: 12px 0;
  padding: 0;

  list-style: none;
}


.training-room__programme-item {
  display: flex;
  flex-direction: column;

  gap: 5px;

  padding: 9px 10px;

  background: #f8fafc;

  border:
    1px solid rgba(148, 163, 184, 0.2);

  border-radius: 10px;
}


.training-room__programme-title {
  color: #263248;

  font-size: 0.65rem;
  font-weight: 750;
  line-height: 1.35;
}


.training-room__programme-status {
  align-self: flex-start;

  padding: 3px 7px;

  border-radius: 999px;

  font-size: 0.5rem;
  font-weight: 900;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.training-room__programme-status--available {
  color: #166534;
  background: #dcfce7;
}


.training-room__programme-status--coming-soon {
  color: #9a5a00;
  background: #fef3c7;
}


.training-room__programme-hint {
  margin: auto 0 0;
  padding-top: 12px;

  color: #52647f;

  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.45;

  border-top:
    1px solid rgba(148, 163, 184, 0.24);
}
