/* SkillCertify Test Cards – Archive View - v1.0.3 */
.sc-test-level {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  font-size: 0.85em;
  font-weight: 700;
  padding: 0.22em 0.85em;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 2px 8px #00968833;
  letter-spacing: 0.02em;
  z-index: 2;
  background: #009688;
}
.sc-level-beginner { background: #009688; }
.sc-level-intermediate { background: #1456b8; }
.sc-level-advanced { background: #093C72; }
.tests-archive-meta-item {
  background: #eaf8f7;
  border-radius: 7px;
  padding: 0.19em 0.7em 0.19em 0.5em;
  display: flex;
  align-items: center;
  gap: 0.38em;
  font-size: 0.97em;
  font-weight: 500;
  color: #1456b8;
}
.tests-archive-meta-icon {
  font-size: 1.08em;
  color: #009688;
  display: inline-block;
  vertical-align: middle;
}
.sc-test-btn-icon {
  font-size: 1.18em;
  display: inline-block;
  vertical-align: middle;
}

.tests-archive {
  margin: 2rem 0;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;

}

.tests-archive h1 {
  text-align: center;
  color: #1456b8;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.tests-archive-search {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.tests-search-input {
  flex: 1;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.tests-search-input:focus {
  border-color: #009688;
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.tests-search-btn {
  padding: 0.75rem 1.25rem;
  background: #009688;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.tests-search-btn:hover {
  background: #00796b;
  transform: translateY(-2px);
}

.tests-archive-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .tests-archive-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .tests-archive-grid {
    grid-template-columns: 1fr !important;
  }
}
  gap: 1.5rem;
}

.tests-archive-card {
  background: linear-gradient(145deg, #ffffff, #f8fdfc);
  border: 1px solid #e0f2f1;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.08);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tests-archive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009688, #00bcd4);
}

.tests-archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 150, 136, 0.15);
  border-color: #009688;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.tests-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 121, 107, 0.2);
  border-color: #00796B;
}

.tests-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9em;
  padding: 0.75rem;
  background: rgba(0, 150, 136, 0.05);
  border-radius: 12px;
  border-left: 4px solid #009688;
}

.tests-archive-meta strong {
  color: #1456b8;
  font-weight: 600;
  background: rgba(20, 86, 184, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85em;
  letter-spacing: 0.03em;
}

.tests-archive-title {
  font-size: 1.3em;
  margin-bottom: 1rem;
}

.tests-archive-title h2 {
  margin: 0;
  color: #1456b8;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.tests-archive-title:hover h2 {
  color: #009688;
}

.tests-archive-desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95em;
}

.tests-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #009688, #00bcd4);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  margin-top: auto;
}

.tests-archive-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tests-archive {
    padding: 0 0.5rem;
    margin: 1rem 0;
  }
  
  .tests-archive h1 {
    font-size: 2rem;
  }
  
  .tests-archive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tests-archive-search {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tests-search-input {
    max-width: 100%;
  }
  
  .tests-archive-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .tests-archive-card {
    padding: 1rem;
  }
  
  .tests-archive h1 {
    font-size: 1.75rem;
  }
  
  .tests-archive-title {
    font-size: 1.1em;
  }
}

.tests-archive-title:hover {
  color: #009688;
}

.tests-archive-desc {
  font-size: 0.95em;
  color: #444;
  margin-top: -0.5em;
  line-height: 1.5;
}

.tests-archive-link {
  margin-top: auto;
  align-self: flex-start;
  background: linear-gradient(90deg, #009688, #00796B);
  color: #fff;
  padding: 0.45em 1.2em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98em;
  box-shadow: 0 3px 10px rgba(0, 150, 136, 0.2);
  text-decoration: none;
  transition: all 0.25s ease;
}

.tests-archive-link:hover {
  background: linear-gradient(90deg, #00796B, #009688);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .tests-archive-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .tests-archive-card {
    max-width: 100%;
    padding: 1.1rem;
  }

  .tests-archive-meta {
    gap: 0.5em;
  }
}
