
/* ==========================================
   MARVEL CLASSES - MOCK TESTS & PRACTICE
========================================== */

.mc-mock {
  --mc-mock-blue: #1457c5;
  --mc-mock-dark: #0c347c;
  --mc-mock-text: #17243b;
  --mc-mock-muted: #64748b;
  --mc-mock-border: #dfe6f0;
  --mc-mock-light: #f5f8fd;

  color: var(--mc-mock-text);
  background: #fff;
  font-family: inherit;
  line-height: 1.65;
}

.mc-mock *,
.mc-mock *::before,
.mc-mock *::after {
  box-sizing: border-box;
}

.mc-mock [hidden] {
  display: none !important;
}

.mc-mock-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.mc-mock a {
  text-decoration: none;
}

.mc-mock button,
.mc-mock input,
.mc-mock select {
  font: inherit;
}

.mc-mock button,
.mc-mock a,
.mc-mock input,
.mc-mock select {
  -webkit-tap-highlight-color: transparent;
}

.mc-mock button:focus-visible,
.mc-mock a:focus-visible,
.mc-mock input:focus-visible,
.mc-mock select:focus-visible {
  outline: 3px solid #8ab4ff;
  outline-offset: 3px;
}

.mc-mock-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--mc-mock-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

/* Hero */

.mc-mock-hero {
  padding: 68px 0;
  background:
    radial-gradient(circle at 85% 15%, #dbe9ff 0, transparent 31%),
    linear-gradient(120deg, #f5f8ff, #fff);
  border-bottom: 1px solid #edf1f7;
}

.mc-mock-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 52px;
}

.mc-mock-hero h1 {
  margin: 0 0 18px;
  color: var(--mc-mock-dark);
  font-size: clamp(35px, 4.5vw, 53px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1.2px;
}

.mc-mock-hero-content > p {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--mc-mock-muted);
  font-size: 16px;
}

.mc-mock-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mc-mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.mc-mock-btn-primary {
  color: #fff;
  background: var(--mc-mock-blue);
}

.mc-mock-btn-primary:hover {
  color: #fff;
  background: var(--mc-mock-dark);
  transform: translateY(-1px);
}

.mc-mock-btn-outline {
  color: var(--mc-mock-blue);
  border-color: #cbd9f0;
  background: #fff;
}

.mc-mock-btn-outline:hover {
  background: #edf4ff;
}

.mc-mock-hero-image {
  position: relative;
  min-width: 0;
}

.mc-mock-hero-image > img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(24, 50, 90, 0.13);
}

.mc-mock-hero-note {
  position: absolute;
  right: -14px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  width: min(285px, 82%);
  padding: 16px 18px;
  border: 1px solid #e5ebf5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(24, 50, 90, 0.12);
}

.mc-mock-hero-note strong {
  color: var(--mc-mock-dark);
  font-size: 14px;
}

.mc-mock-hero-note span {
  color: var(--mc-mock-muted);
  font-size: 12px;
}

/* Section headings */

.mc-mock-section {
  padding: 67px 0;
  scroll-margin-top: 28px;
}

.mc-mock-heading {
  max-width: 760px;
  margin: 0 auto 31px;
  text-align: center;
}

.mc-mock-heading h2,
.mc-mock-tips-grid h2,
.mc-mock-cta h2 {
  margin: 0 0 10px;
  color: var(--mc-mock-text);
  font-size: clamp(27px, 3.5vw, 37px);
  font-weight: 800;
  line-height: 1.25;
}

.mc-mock-heading > p,
.mc-mock-tips-grid > div:first-child > p,
.mc-mock-cta p {
  margin: 0;
  color: var(--mc-mock-muted);
  font-size: 15px;
}

/* Search */

.mc-mock-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  margin-bottom: 22px;
  padding: 0 16px;
  border: 1px solid var(--mc-mock-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(24, 50, 90, 0.035);
}

.mc-mock-search > span {
  color: var(--mc-mock-blue);
  font-size: 27px;
  line-height: 1;
}

.mc-mock-search input {
  width: 100%;
  min-width: 0;
  padding: 15px 0;
  color: var(--mc-mock-text);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.mc-mock-search input:focus-visible {
  outline: none;
}

.mc-mock-search input::placeholder {
  color: #94a0b2;
}

.mc-mock-search button {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--mc-mock-muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.mc-mock-search button:hover {
  color: var(--mc-mock-blue);
  background: #edf4ff;
}

/* Filter panel */

.mc-mock-filter-panel {
  padding: 22px;
  border: 1px solid var(--mc-mock-border);
  border-radius: 12px;
  background: var(--mc-mock-light);
}

.mc-mock-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.mc-mock-filter-heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.mc-mock-reset {
  padding: 5px 0;
  color: var(--mc-mock-blue);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.mc-mock-reset:hover {
  text-decoration: underline;
}

.mc-mock-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mc-mock-field {
  min-width: 0;
}

.mc-mock-field label {
  display: block;
  margin-bottom: 7px;
  color: #3c4c63;
  font-size: 12px;
  font-weight: 750;
}

.mc-mock-field select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 25px 9px 10px;
  color: var(--mc-mock-text);
  border: 1px solid #d6deeb;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}

.mc-mock-field select:disabled {
  color: #8c98aa;
  background: #edf0f5;
  cursor: not-allowed;
}

/* Result toolbar */

.mc-mock-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 27px 0 19px;
}

.mc-mock-results-toolbar > p {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.mc-mock-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mc-mock-filter-chip {
  padding: 5px 9px;
  color: var(--mc-mock-dark);
  border: 1px solid #d4e2fa;
  border-radius: 30px;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 650;
}

/* Test cards */

.mc-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 23px;
}

.mc-mock-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mc-mock-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(26, 49, 82, 0.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mc-mock-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 49, 82, 0.1);
}

.mc-mock-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf3fc;
}

.mc-mock-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mc-mock-card:hover .mc-mock-card-image img {
  transform: scale(1.035);
}

.mc-mock-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--mc-mock-blue);
  background: linear-gradient(135deg, #eaf1ff, #f7faff);
  font-size: 35px;
  font-weight: 850;
}

.mc-mock-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 5px;
  background: var(--mc-mock-blue);
  font-size: 10px;
  font-weight: 800;
}

.mc-mock-card-badge.is-free {
  background: #16824b;
}

.mc-mock-card-badge.is-offer {
  background: #b45309;
}

.mc-mock-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px;
}

.mc-mock-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.mc-mock-tag {
  padding: 4px 8px;
  color: #315b9d;
  border-radius: 4px;
  background: #eef4ff;
  font-size: 10px;
  font-weight: 750;
}

.mc-mock-card h3 {
  margin: 0 0 9px;
  color: var(--mc-mock-text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.mc-mock-card-description {
  margin: 0 0 15px;
  color: var(--mc-mock-muted);
  font-size: 13px;
  line-height: 1.75;
}

.mc-mock-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-bottom: 15px;
  color: #596981;
  font-size: 12px;
}

.mc-mock-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 17px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}

.mc-mock-price-current {
  color: var(--mc-mock-dark);
  font-size: 23px;
  font-weight: 850;
}

.mc-mock-price-original {
  color: #8793a5;
  font-size: 13px;
  text-decoration: line-through;
}

.mc-mock-price-label {
  color: #16824b;
  font-size: 12px;
  font-weight: 750;
}

.mc-mock-card-actions {
  display: flex;
  gap: 9px;
}

.mc-mock-card-actions a {
  width: 100%;
  text-align: center;
}

/* Empty state and Load More */

.mc-mock-empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #cbd6e6;
  border-radius: 12px;
  background: #fbfcff;
}

.mc-mock-empty-icon {
  margin-bottom: 10px;
  color: var(--mc-mock-blue);
  font-size: 43px;
}

.mc-mock-empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.mc-mock-empty p {
  margin: 0 0 20px;
  color: var(--mc-mock-muted);
  font-size: 14px;
}

.mc-mock-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Test format cards */

.mc-mock-formats {
  background: #f6f8fc;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
}

.mc-mock-format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mc-mock-format-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--mc-mock-border);
  border-radius: 10px;
  background: #fff;
}

.mc-mock-format-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  place-items: center;
  color: var(--mc-mock-blue);
  border-radius: 9px;
  background: #edf4ff;
  font-size: 13px;
  font-weight: 850;
}

.mc-mock-format-card h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.45;
}

.mc-mock-format-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--mc-mock-muted);
  font-size: 13px;
  line-height: 1.75;
}

.mc-mock-format-link {
  align-self: flex-start;
  padding: 0;
  color: var(--mc-mock-blue);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.mc-mock-format-link:hover {
  text-decoration: underline;
}

/* Preparation tips */

.mc-mock-tips-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 55px;
}

.mc-mock-tips-grid > div:first-child > p {
  margin-top: 12px;
}

.mc-mock-tips-list {
  display: grid;
  gap: 14px;
}

.mc-mock-tips-list > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--mc-mock-border);
  border-radius: 9px;
  background: #fff;
}

.mc-mock-tips-list span {
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  color: var(--mc-mock-blue);
  border-radius: 7px;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 850;
}

.mc-mock-tips-list p {
  margin: 3px 0 0;
  color: #43526a;
  font-size: 13px;
}

/* CTA */

.mc-mock-cta {
  padding: 48px 0;
  color: #fff;
  background: var(--mc-mock-dark);
}

.mc-mock-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mc-mock-cta .mc-mock-eyebrow {
  color: #bcd3ff;
}

.mc-mock-cta h2 {
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
}

.mc-mock-cta p {
  color: #d5e2fa;
}

.mc-mock-btn-light {
  flex-shrink: 0;
  color: var(--mc-mock-dark);
  background: #fff;
}

.mc-mock-btn-light:hover {
  color: var(--mc-mock-dark);
  background: #eaf1ff;
}

/* Screen reader utility */

.mc-mock .mc-mock-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Responsive */

@media (max-width: 1024px) {
  .mc-mock-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-mock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-mock-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mc-mock-container {
    width: min(100% - 28px, 1180px);
  }

  .mc-mock-hero {
    padding: 45px 0 50px;
  }

  .mc-mock-hero-grid,
  .mc-mock-tips-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .mc-mock-hero h1 {
    font-size: 35px;
    letter-spacing: -0.7px;
  }

  .mc-mock-hero-content > p {
    font-size: 15px;
  }

  .mc-mock-hero-note {
    right: 10px;
    bottom: 12px;
  }

  .mc-mock-section {
    padding: 47px 0;
  }

  .mc-mock-heading h2 {
    font-size: 28px;
  }

  .mc-mock-filter-panel {
    padding: 15px;
  }

  .mc-mock-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 10px;
  }

  .mc-mock-field select {
    font-size: 12px;
  }

  .mc-mock-grid,
  .mc-mock-format-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-mock-card-body {
    padding: 17px;
  }

  .mc-mock-results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mc-mock-cta {
    padding: 38px 0;
  }

  .mc-mock-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-mock *,
  .mc-mock *::before,
  .mc-mock *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
