/* Smart Question Bank — luxury catalog refinement.
   Catalog presentation only. Examination flow, answers, attempts and results are untouched. */

.mrph-exam-catalog-head {
  position: relative;
  overflow: hidden;
  align-items: center;
  min-height: 88px;
  margin: 8px 0 18px;
  padding: 20px 24px;
  border: 1px solid rgba(17, 91, 111, .11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(40, 198, 213, .12), transparent 18rem),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,250,251,.96));
  box-shadow: 0 16px 42px rgba(7, 48, 66, .065);
}

.mrph-exam-catalog-head::after {
  content: "";
  position: absolute;
  inset-inline-end: 26px;
  top: 50%;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40,198,213,.58));
  box-shadow: 32px -10px 0 -0.5px rgba(40,198,213,.18), 52px 10px 0 -0.5px rgba(40,198,213,.12);
}

.mrph-exam-catalog-head > div {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.mrph-exam-catalog-head h3 {
  display: none;
}

.mrph-exam-catalog-head small {
  margin: 0 0 6px;
  color: #087582;
  font-size: 9px;
  letter-spacing: .19em;
}

.mrph-exam-catalog-head p {
  max-width: 780px;
  margin: 0;
  color: #536b7c;
  font-size: 14px;
  line-height: 1.65;
}

.mrph-exam-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  counter-reset: mrphExamIndex;
}

.mrph-exam-grid .mrph-exam-card {
  counter-increment: mrphExamIndex;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(190px, 220px);
  grid-template-rows: auto auto auto auto;
  min-height: 178px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 93, 112, .13);
  border-radius: 22px;
  color: #10263a;
  background:
    radial-gradient(circle at 88% 0%, rgba(40,198,213,.10), transparent 17rem),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,250,251,.98));
  box-shadow: 0 16px 38px rgba(5, 39, 56, .075);
  isolation: isolate;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mrph-exam-grid .mrph-exam-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40,198,213,.34);
  box-shadow: 0 22px 48px rgba(5, 39, 56, .11);
}

.mrph-exam-grid .mrph-exam-card::before {
  content: counter(mrphExamIndex, decimal-leading-zero);
  position: relative;
  inset: auto;
  z-index: 0;
  grid-column: 1;
  grid-row: 1 / 5;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  color: rgba(211, 248, 250, .92);
  background:
    radial-gradient(circle at 50% 28%, rgba(58,221,229,.30), transparent 4.5rem),
    linear-gradient(160deg, #041826, #06354b 72%, #087582);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: .06em;
  mask-image: none;
  box-shadow: inset -1px 0 rgba(255,255,255,.08);
}

[dir="rtl"] .mrph-exam-grid .mrph-exam-card::before {
  box-shadow: inset 1px 0 rgba(255,255,255,.08);
}

.mrph-exam-grid .mrph-exam-card-top {
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  padding: 22px 24px 0;
}

.mrph-exam-grid .mrph-exam-card-badge,
.mrph-exam-grid .mrph-exam-status-chip {
  min-height: 24px;
  padding: 0;
  border: 0;
  color: #087582;
  background: transparent;
  font-size: 8px;
  letter-spacing: .16em;
}

.mrph-exam-grid .mrph-exam-status-chip {
  padding: 4px 9px;
  border: 1px solid rgba(8,117,130,.13);
  border-radius: 999px;
  color: #315f6c;
  background: rgba(40,198,213,.065);
  letter-spacing: .04em;
  text-transform: none;
}

.mrph-exam-grid .mrph-exam-card h4 {
  grid-column: 2;
  grid-row: 2;
  max-width: 760px;
  margin: 8px 0 0;
  padding: 0 24px;
  color: #0b2437;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 820;
  line-height: 1.14;
  letter-spacing: -.028em;
}

[dir="rtl"] .mrph-exam-grid .mrph-exam-card h4 {
  line-height: 1.35;
  letter-spacing: -.012em;
}

.mrph-exam-grid .mrph-exam-card p {
  display: -webkit-box;
  grid-column: 2;
  grid-row: 3;
  max-width: 820px;
  margin: 7px 0 0;
  padding: 0 24px;
  overflow: hidden;
  color: #647989;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mrph-exam-grid .mrph-exam-meta {
  grid-column: 2;
  grid-row: 4;
  gap: 0;
  margin: 15px 0 0;
  padding: 0 24px 22px;
}

.mrph-exam-grid .mrph-exam-meta span {
  min-height: auto;
  padding: 0 12px;
  border: 0;
  border-inline-end: 1px solid rgba(17,91,111,.13);
  border-radius: 0;
  color: #496476;
  background: transparent;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.mrph-exam-grid .mrph-exam-meta span:first-child {
  padding-inline-start: 0;
}

.mrph-exam-grid .mrph-exam-meta span:last-child {
  border-inline-end: 0;
}

.mrph-exam-grid .mrph-exam-card-foot {
  grid-column: 3;
  grid-row: 1 / 5;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 11px;
  margin: 0;
  padding: 24px;
  border-inline-start: 1px solid rgba(17,91,111,.10);
  background: linear-gradient(180deg, rgba(248,252,253,.72), rgba(239,247,249,.82));
}

.mrph-exam-grid .mrph-exam-primary {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(73,219,226,.30);
  border-radius: 13px;
  color: #effdff;
  background:
    radial-gradient(circle at 18% 10%, rgba(71,221,229,.30), transparent 8rem),
    linear-gradient(135deg, #05243a, #086576);
  box-shadow: 0 11px 25px rgba(5,48,66,.17);
  font-size: 13px;
}

.mrph-exam-grid .mrph-exam-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.mrph-exam-grid .mrph-exam-attempt-note {
  display: none;
}

@media (max-width: 980px) {
  .mrph-exam-grid .mrph-exam-card {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
  }

  .mrph-exam-grid .mrph-exam-card::before {
    grid-row: 1 / 5;
    font-size: 21px;
  }

  .mrph-exam-grid .mrph-exam-card-foot {
    grid-column: 1 / -1;
    grid-row: 5;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 18px;
    border-inline-start: 0;
    border-top: 1px solid rgba(17,91,111,.10);
  }

  .mrph-exam-grid .mrph-exam-primary {
    width: min(100%, 210px);
  }
}

@media (max-width: 640px) {
  .mrph-exam-catalog-head {
    min-height: 0;
    padding: 18px;
    border-radius: 17px;
  }

  .mrph-exam-catalog-head::after {
    display: none;
  }

  .mrph-exam-grid {
    gap: 12px;
  }

  .mrph-exam-grid .mrph-exam-card {
    grid-template-columns: 58px minmax(0, 1fr);
    border-radius: 18px;
  }

  .mrph-exam-grid .mrph-exam-card::before {
    font-size: 16px;
  }

  .mrph-exam-grid .mrph-exam-card-top {
    padding: 18px 17px 0;
  }

  .mrph-exam-grid .mrph-exam-card h4 {
    margin-top: 6px;
    padding: 0 17px;
    font-size: 19px;
  }

  .mrph-exam-grid .mrph-exam-card p {
    padding: 0 17px;
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .mrph-exam-grid .mrph-exam-meta {
    padding: 0 17px 18px;
  }

  .mrph-exam-grid .mrph-exam-meta span {
    padding: 0 7px;
    font-size: 10px;
  }

  .mrph-exam-grid .mrph-exam-card-foot {
    justify-content: stretch;
    padding: 12px 14px;
  }

  .mrph-exam-grid .mrph-exam-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mrph-exam-grid .mrph-exam-card,
  .mrph-exam-grid .mrph-exam-primary {
    transition: none;
  }
}
