/* Certificate note after the curriculum (BRIEF-03). Scoped under .ocs-cert-. Colours and sizes follow the curriculum. */

.ocs-cert-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 9px 0 0;
  padding: 14px 16px;
  background: #142034;
  border: 1px solid #30435c;
  border-radius: 9px;
}
.ocs-cert-note .ocs-cert-thumb {
  flex: 0 0 180px;
  width: 180px;
  margin: 0;
  padding: 0;
  border: 1px solid #30435c;
  border-radius: 6px;
  background: #0b121e;
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
  box-shadow: none;
}
.ocs-cert-note .ocs-cert-thumb:hover,
.ocs-cert-note .ocs-cert-thumb:focus {
  background: #0b121e;
  border-color: #526b8b;
}
.ocs-cert-note .ocs-cert-thumb:focus-visible {
  outline: 2px solid #526b8b;
  outline-offset: 2px;
}
.ocs-cert-note .ocs-cert-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 842;
  border-radius: 0;
}
.ocs-cert-note-text {
  min-width: 0;
}
.ocs-cert-note .ocs-cert-note-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tutor-text-primary, #eaf3ff);
}
.ocs-cert-note-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #b4c6df;
}

/* Lightbox (native <dialog>). */
.ocs-cert-lightbox {
  width: min(1200px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid #30435c;
  border-radius: 12px;
  background: #0b121e;
  overflow: visible;
}
.ocs-cert-lightbox::backdrop {
  background: rgba(3, 7, 14, 0.82);
}
.ocs-cert-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 2px);
  object-fit: contain;
  border-radius: 12px;
}
.ocs-cert-lightbox .ocs-cert-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #30435c;
  border-radius: 50%;
  background: #1a2a40;
  color: var(--tutor-text-primary, #eaf3ff);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ocs-cert-lightbox .ocs-cert-lightbox-close:hover,
.ocs-cert-lightbox .ocs-cert-lightbox-close:focus-visible {
  border-color: #526b8b;
  background: #223650;
}

@media (max-width: 560px) {
  .ocs-cert-note {
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
  }
  .ocs-cert-note .ocs-cert-thumb {
    flex-basis: 140px;
    width: 140px;
  }
  .ocs-cert-note-text p {
    font-size: 15px;
    line-height: 1.6;
  }
  .ocs-cert-lightbox .ocs-cert-lightbox-close {
    top: -44px;
    right: 0;
  }
}
@media (max-width: 380px) {
  .ocs-cert-note {
    flex-direction: column;
  }
}
