/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Vazirmatn', sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.header {
  background-color: #007BFF;
  color: #fff;
  padding: 20px 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.header h1 {
  font-size: 24px;
}
.header nav ul {
  display: flex;
  list-style: none;
}
.header nav ul li {
  margin: 0 10px;
}
.header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}
.header nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Carousel */
.carousel {
  width: 100%;
  height: 300px;
  position: relative;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 16px;
}
.slides img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: none;
}

/* Search Box */
.search-box {
  text-align: center;
  margin: 40px 0;
}
.search-box input {
  width: 70%;
  max-width: 500px;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
}
.search-box button {
  padding: 14px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 10px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.3s;
}
.search-box button:hover {
  background: #218838;
}

/* Popular Tests */
.popular-tests {
  margin: 50px 0;
}
.popular-tests h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.test-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 18px;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.test-card:hover {
  transform: translateY(-8px);
  background: #007BFF;
  color: white;
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  .search-box input {
    width: 90%;
  }
}
