/* ========================================
   Lab Results New Block
   ======================================== */

.ndk-lrn {
  margin: 0 auto;
  max-width: 1140px;
  padding-top: 60px;
}

/* ---- Header Section ---- */
.ndk-lrn__header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 40px;
}

.ndk-lrn__title {
  margin: 0;
  width: 100%;
  font-size: 32px;
  line-height: 40px;
  color: #0c1f2b;
  font-weight: 600;
}

.ndk-lrn__separator {
  width: 100%;
  height: 1px;
  background-color: #9aa7ae;
  opacity: 0.4;
}

.ndk-lrn__intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ndk-lrn__description {
  margin: 0;
  width: 100%;
  font-size: 16px;
  line-height: 27px;
  color: #0c1f2b;
}

.ndk-lrn__updated {
  margin: 0;
  width: 100%;
  font-size: 16px;
  line-height: 27px;
  color: #c25b44;
  font-weight: 600;
}

/* ---- Categories Container ---- */
.ndk-lrn__categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* ---- Single Category ---- */
.ndk-lrn__category {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* ---- Category Header Bar ---- */
.ndk-lrn__category-header {
  display: flex;
  gap: 15px;
  width: 100%;
  padding: 0px;
  border-radius: 5px;
  border: 1px solid #0c1f2b;
  overflow: hidden;
  height: 100%;
}

.ndk-lrn__category-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.ndk-lrn__category-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ndk-lrn__img-mobile {
  display: none;
}

.ndk-lrn__img-desktop {
  display: block;
}

.ndk-lrn__category-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-right: 40px;
  padding-top: 27px;
  padding-bottom: 27px;
}

.ndk-lrn__category-name {
  margin: 0;
}

.ndk-lrn__category-name-main {
  color: #0c1f2b;
  font-size: 25px;
  font-weight: 600;
}

.ndk-lrn__category-name-suffix {
  color: #0c1f2b;
  font-size: 22px;
  font-weight: 500;
}

.ndk-lrn__category-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.ndk-lrn__shop-vein-btn {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background-color: #0c1f2b;
  color: #fff;
  border-radius: 5px;
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.ndk-lrn__shop-vein-btn:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

.ndk-lrn__shop-vein-btn svg {
  width: 12px;
  height: 10px;
  flex-shrink: 0;
}

.ndk-lrn__average-mit {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ndk-lrn__average-mit-label {
  font-size: 16px;
  line-height: 19px;
  color: #0c1f2b;
  font-weight: 400;
}

.ndk-lrn__average-mit-value {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 2px 6px;
  background-color: #fff;
  border-radius: 5px;
  font-size: 16px;
  line-height: 19px;
  color: #0c1f2b;
  font-weight: 700;
}

/* ---- Strains Grid ---- */
.ndk-lrn__strains {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

/* ---- Strain Card ---- */
.ndk-lrn__strain-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: calc(33.333% - 14px);
  padding: 30px;
  border-radius: 5px;
  border: 1px solid #0c1f2b;
  overflow: hidden;
  box-sizing: border-box;
}

.ndk-lrn__strain-name {
  margin: 0;
  width: 100%;
  font-size: 19px;
  line-height: 23px;
  color: #0c1f2b;
  font-weight: 500;
}

.ndk-lrn__strain-divider {
  width: 100%;
  height: 1px;
  background-color: #0c1f2b;
  opacity: 0.1;
}

/* ---- Reports Row ---- */
.ndk-lrn__strain-reports {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

/* ---- MIT% Box ---- */
.ndk-lrn__mit-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-items: center;
  width: 169px;
  min-height: 58px;
  padding: 6px 12px;
  border: 1px solid #c25b44;
  border-radius: 5px;
  background-color: #fff;
  box-sizing: border-box;
  flex-shrink: 0;
}

.ndk-lrn__mit-info {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ndk-lrn__mit-label {
  font-size: 14px;
  line-height: 17px;
  color: #0c1f2b;
  font-weight: 500;
}

.ndk-lrn__mit-value {
  font-size: 14px;
  line-height: 17px;
  color: #0c1f2b;
  font-weight: 700;
}

.ndk-lrn__mit-separator {
  width: 100%;
  height: 1px;
  background-color: #e1e6ea;
}

.ndk-lrn__mit-report-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  line-height: 17px;
  color: #c25b44;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}

.ndk-lrn__mit-report-link:hover {
  color: #c25b44;
  text-decoration: underline;
}

.ndk-lrn__mit-report-link svg {
  width: 12px;
  height: 10px;
  flex-shrink: 0;
}

/* ---- Full Results Button ---- */
.ndk-lrn__full-results-btn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 5px 10px;
  background-color: #c25b44;
  border-radius: 5px;
  overflow: hidden;
  font-size: 14px;
  line-height: 17px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
}

.ndk-lrn__full-results-btn:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

/* ---- Shop Strain Button ---- */
.ndk-lrn__shop-strain-btn {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #0c1f2b;
  border-radius: 5px;
  font-size: 14px;
  line-height: 17px;
  color: #0c1f2b;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  box-shadow: 2px 2px 6px 0px rgba(12, 31, 43, 0.08);
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.ndk-lrn__shop-strain-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #0c1f2b;
  text-decoration: none;
}

.ndk-lrn__shop-strain-btn svg {
  width: 12px;
  height: 10px;
  flex-shrink: 0;
}

/* ========================================
   Desktop (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
  .ndk-lrn__header {
    margin-bottom: 50px;
  }

  .ndk-lrn__title {
    font-size: 38px;
    line-height: 46px;
  }

  .ndk-lrn__categories {
    gap: 60px;
  }

  /* .ndk-lrn__category-header {
    padding: 20px 40px;
  } */

  .ndk-lrn__category-name-main {
    font-size: 29px;
  }

  .ndk-lrn__category-name-suffix {
    font-size: 25px;
  }
}

/* ========================================
   Mobile (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
  .ndk-lrn__category-header {
    align-items: center;
    justify-content: center;
  }

  .ndk-lrn__category-info {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ndk-lrn {
    padding: 0 15px;
  }

  .ndk-lrn__strain-card {
    width: 100%;
  }

  .ndk-lrn__img-desktop {
    display: none;
  }

  .ndk-lrn__img-mobile {
    display: block;
  }
}
