

/* =========================================================
   MUST PSC — Tests Page Styles
   Extracted from Global CSS
   ========================================================= */

/* ===== PAGE BASE ===== */
.tests-page body {
  background: var(--gray-100);
}

/* ===== CONTAINER ===== */
.tests-page .container {
  max-width: 820px;
}

/* ===== SEARCH BOX ===== */
.tests-page .search-box {
  background: #fff;
  border-radius: var(--r-md);
  padding: 6px 14px;
  margin-bottom: 16px;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tests-page .search-box input {
  border: none;
  background: transparent;
  margin: 0;
  padding: 8px 0;
  box-shadow: none;
}

.tests-page .search-box input:focus {
  border: none;
  box-shadow: none;
}

/* ===== SUBJECT BLOCK ===== */
.tests-page .subject {
  background: #fff;
  padding: 16px;
  border-radius: var(--r-md);
  margin-bottom: 10px;
  border: 1.5px solid var(--gray-200);
  transition: all var(--ease);
}

.tests-page .subject:hover {
  background: var(--primary-light);
  border-color: var(--primary-xlight);
  box-shadow: var(--shadow-sm);
}

/* Subject header (clickable) */
.tests-page .subject-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
}

/* Chevron animation */
.tests-page .subject-header .chevron {
  transition: transform var(--ease);
  color: var(--gray-400);
}

.tests-page .subject.open .chevron {
  transform: rotate(180deg);
}

/* ===== TOPICS LIST ===== */
.tests-page .topics {
  display: none;
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1.5px solid var(--gray-100);
}

.tests-page .subject.open .topics {
  display: block;
}

/* Individual topic row */
.tests-page .topic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
  font-weight: 500;
}

.tests-page .topic:last-child {
  border-bottom: none;
}

.tests-page .topic:hover {
  background: var(--primary-light);
  border-radius: var(--r-sm);
}

/* ===== BADGES ===== */
.tests-page .free {
  color: var(--success);
  font-weight: 600;
  font-size: 13px;
  background: var(--success-light);
  padding: 3px 10px;
  border-radius: 99px;
}

.tests-page .locked {
  color: var(--gray-500);
  font-weight: 600;
  font-size: 13px;
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {

  .tests-page .subject,
  .tests-page .topic {
    padding: 14px;
  }

  .tests-page .search-box {
    padding: 8px 12px;
  }
}