
:root {
  --primary-blue: #4f46e5;
  --dark-blue: #001bb7;
  --bg-light: #f8fafc;
  --card-bg-light: #ffffff;
  --text-primary-light: #1e293b;
  --text-secondary-light: #64748b;
  --border-light: #e2e8f0;

  --bg-dark: #0f172a;
  --card-bg-dark: #1e293b;
  --text-primary-dark: #f8fafc;
  --text-secondary-dark: #94a3b8;
  --border-dark: #334155;

  --transition: all 0.3s ease;
}

body {
  background-color: var(--bg-light);
  color: var(--text-primary-light);
  transition: var(--transition);
  margin: 0;
  padding: 0;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
}

.test-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 90px 20px 10px 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}


.test-card {
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

body.dark-mode .test-card {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.test-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

body.dark-mode .card-img {
  border-bottom-color: var(--border-dark);
  opacity: 0.9;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.test-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary-light);
}

body.dark-mode .test-card h3 {
  color: var(--text-primary-dark);
}

.test-card p {
  font-size: 0.95rem;
  color: var(--text-secondary-light);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

body.dark-mode .test-card p {
  color: var(--text-secondary-dark);
}

.test-btn {
  display: inline-block;
  background-color: var(--primary-blue);
  color: #ffffff !important;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.test-btn:hover {
  background-color: var(--dark-blue);
}
.show-more-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.toggle-btn {
  background-color: var(--dark-blue);
  color: white;
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 27, 183, 0.2);
}

.toggle-btn:hover {
  transform: scale(1.05);
  background-color: var(--primary-blue);
}

.hidden-card {
  display: none;
}

@media (max-width: 480px) {
  .test-card {
    width: 100%;
  }
}

.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--card-bg-light);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

body.dark-mode .main-navbar {
  background: var(--card-bg-dark);
  border-bottom: 1px solid var(--border-dark);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-blue);
  text-decoration: none;
}

.mode-toggle {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(79, 70, 229, 0.1);
  transition: var(--transition);
}

.mode-toggle:hover {
  transform: rotate(15deg) scale(1.1);
}

.extra-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  opacity: 0;
}

.extra-cards.open {
  max-height: 1000px;
  opacity: 1;
  margin-top: 25px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toggle-btn i {
  transition: transform 0.4s ease;
}

.toggle-btn.active i {
  transform: rotate(180deg);
}

.extra-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  width: 100%; 
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  opacity: 0;
}

.extra-cards.open {
  max-height: 1200px; 
  opacity: 1;
  margin-top: 25px;
}


body.dark-mode .main-navbar {
  background: var(--card-bg-dark) !important;
}
