:root {
  --green-600: #0b9d63;
  --green-500: #16c172;
  --green-200: #d5f5e3;
  --dark: #0e2f2f;
  --light: #fcfffd;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}
body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.8;
  direction: rtl;
}
img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  height: 200px;
}

/* استایل‌های منو */
nav {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(11, 157, 99, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-600);
  text-decoration: none;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--green-600);
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  right: 0;
  background-color: var(--green-600);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--green-600);
}

header {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  padding: 2.5rem 1.5rem 4rem;
  text-align: center;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.8rem;
}
header p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 2px solid #fff;
  color: var(--green-600);
  background-color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  color: #fff;
  background-color: transparent;
}
main {
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}
section {
  margin-bottom: 3rem;
  background: #fff;
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 15px 40px rgba(11, 157, 99, 0.08);
  border: 1px solid #f0fff6;
}
section h2 {
  color: var(--green-600);
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.grid {
  display: grid;
  gap: 1.8rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--green-200);
  border-radius: 24px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(11, 157, 99, 0.15);
}
.card h3 {
  color: var(--green-600);
  font-size: 1.2rem;
}
.card p {
  color: #175f4b;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--green-600);
}
.about {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}
.badge {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background-color: rgba(22, 193, 114, 0.15);
  color: var(--green-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: #0b7d51;
}

/* استایل بخش جستجو */
.search-section {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  padding: 2rem;
  border-radius: 28px;
  margin-bottom: 2rem;
}
.search-container {
  max-width: 600px;
  margin: 0 auto;
}
.search-container h2{
  color: var(--light);
}
.search-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.search-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.search-btn {
  padding: 0.8rem 1.5rem;
  background: white;
  color: var(--green-600);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.search-btn:hover {
  background: var(--green-200);
}

/* استایل فیلترها */
.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--green-600);
  color: white;
}

/* استایل ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .filters {
    justify-content: center;
  }
}

footer {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}
.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover {
  color: white;
  transform: translateX(-5px);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-link:hover {
  background-color: white;
  color: var(--green-600);
  transform: translateY(-3px);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}
.contact-item i {
  width: 20px;
  text-align: center;
}
.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}