/*
 * Shared page styles for DGA listing pages:
 * TrakSection, SpecializedTrackSection, FAQSection.
 *
 * Hero uses page-hero* (not trak-*) so FAQ and other pages can reuse it
 * without confusing track-only class names when debugging.
 */

/* Hero — shared across track + FAQ pages */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: #074D31;
  padding-top: 40px;
  padding-bottom: 40px;
  height: 510px;
}

 

.page-hero-title {
  color: var(--white);
  font-size: clamp(40px, 3.75vw, 72px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 130px;
  margin-bottom: 20px;
}

.page-hero-summary {
  color: var(--white);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  max-width: 1444px;
  margin-top: 20px;
}

.page-hero-pattern {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: url("../Images/patterns/page-hero-pattern.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;

}

.ltr .page-hero-pattern {
  transform: scaleX(-1);
}

/* Important note card overlapping the hero */
.note-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%; /* 1736/1920 per Figma */
  min-height: 168px;
  margin: -84px auto 0;
  padding: 28px 40px;
  background-color: var(--bs-neutral-800);
  border-radius: 16px;
  color: var(--bs-white);
}

.note-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 46px;
  object-fit: contain;
}

.note-card-title {
  margin-bottom: 4px;
  font-size: 30px;
  font-weight: 400;
  line-height: 38px;
}

.note-card-text {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

/* Course cards */
.element-grid .trak-card {
  height: 100%;
}

.trak-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background-color: #FFFFFF;
}

.trak-card-media {
  position: relative;
}

.trak-card-media img {
  display: block;
  width: 100%;
  height: 216px;
  object-fit: cover;
  border-radius: 16px;
}

.trak-card-badge {
  --tag-color: var(--bs-success-700);
  position: absolute;
  bottom: 21px;
  inset-inline-end: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--tag-color);
  background-color: #FFFFFF;
  background-color: color-mix(in srgb, var(--tag-color) 8%, white);
  border: 1px solid color-mix(in srgb, var(--tag-color) 35%, white);
}

.trak-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px 43px 28px;
}

.trak-card-title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: #161616;
}

.trak-card-summary {
  flex-grow: 1;
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 30px;
  color: #6C737F;
}

.trak-card-divider {
  margin: 0 0 19px;
  border-top: 1px solid #EAECF0;
  opacity: 1;
}

.trak-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  font-size: 16px;
  line-height: 28px;
  color: #14573A;
}

.trak-meta-item img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.trak-meta-item .trak-meta-value {
  font-weight: 400;
}

/* Empty state (854x175 white card per Figma) */
.empty-state-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 854px;
  min-height: 175px;
  margin: 100px auto;
  padding: 32px 48px;
  background-color: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--bs-neutral-300);
}

.empty-state-card svg {
  flex-shrink: 0;
  width: 37px;
  height: 37px;
}

.empty-state-text {
  margin: 0;
  font-size: clamp(24px, 1.9vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #6C737F;
}

.ms-dlgContent {
  overflow: auto;
}

.ms-dlgFrame {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .trak-card-body {
    padding: 20px 24px;
  }

  .trak-card-title {
    font-size: 20px;
  }

  .trak-card-summary {
    font-size: 16px;
    line-height: 26px;
  }

  .trak-meta-item {
    font-size: 15px;
  }
}

@media (max-width: 767.98px) {
   

  .note-card {
    gap: 16px;
    padding: 20px;
    margin-top: -60px;
  }

  .note-card-icon {
    width: 36px;
    height: 32px;
  }

  .note-card-title {
    font-size: 20px;
    line-height: 28px;
  }

  .note-card-text {
    font-size: 16px;
    line-height: 26px;
  }

  .empty-state-card {
    margin: 50px auto;
    padding: 24px;
  }

  .empty-state-card svg {
    width: 28px;
    height: 28px;
  }
}
