body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f8fbf7;
    color: #222;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e7d32;
  }
  
  nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #444;
  }
  
  .auth-buttons button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: #38913d;
    border-radius: 5px;
    cursor: pointer;
    color: white;
  }
  
  .signup {
    background-color: #38913d;
    color: white;
  }
  .signup :hover {
    background-color: #0d7035;
  }

  .pest-disease-library {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
    width: 150%;
    max-width: 900px;
    text-align: center;
    margin-top: 3%;
    margin-left: 22%;
}

.pest-disease-library h2 {
    color: #388e3c;
    margin-bottom: 10px;
}

.pest-disease-library .description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
    margin-right: 10%;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #81c784; 
    border-radius: 6px;
    font-size: 1em;
    outline: none;
    background-color: #f1f8e9; 
}

.search-bar .search-icon {
    position: absolute;
    align-items: end;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #388e3c;
    font-size: 1.2em;
}

.category-filters {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0; 
    overflow-x: auto;
}
.category-filters li {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: transparent; 
    color: #388e3c; 
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent; 
}

.category-filters li.active {
    background-color: #e0f2e7; /* Very light green active background */
    color: #388e3c;
    border: 1px solid #388e3c; /* Green border for active */
}

.category-filters li:hover {
    background-color: #f1f8e9; /* Very light green hover background */
}

.results-container {
    text-align: left;
    padding: 15px 0;
}
.card-container {
    display: flex;
    gap: 20px;
    margin-left: 23%;
    margin-top: 10px;
}

.pest-disease-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 300px;
    overflow: hidden;
}

.image-placeholder {
    background-color: #f0f0f0;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 0.9em;
    padding: 10px; 
}

.card-content {
    padding: 15px;
}

.title-tag {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.title-tag h3 {
    color: #333;
    margin: 0;
    font-size: 1.3em;
}

.tag {
    background-color: #e0f2e7; /* Light green background for tags */
    color: #388e3c; /* Green text for tags */
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    text-transform: capitalize;
}

.fungus {
    background-color: #ffe0b2; /* Light orange for fungus */
    color: #e65100; /* Dark orange for fungus */
}

.scientific-name {
    color: #777;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.affected-crops {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.crop {
    background-color: #f1f8e9; /* Very light green for crops */
    color: #388e3c;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 0.8em;
}

.more-crops {
    background-color: transparent;
    color: #388e3c;
    border: none;
    padding: 5px 0;
    font-size: 0.8em;
    cursor: pointer;
    outline: none;
}

.more-crops:hover {
    text-decoration: underline;
}
.card-container {
    display: flex;
    gap: 20px;
}

.pest-disease-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 300px;
    overflow: hidden; /* Clip content that goes outside rounded corners */
}

.image-placeholder {
    background-color: #f0f0f0; /* Placeholder color for image */
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 0.9em;
    padding: 10px; /* Ensure some space if text overflows slightly */
}

.card-content {
    padding: 15px;
}

.title-tag {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.title-tag h3 {
    color: #333;
    margin: 0;
    font-size: 1.3em;
}

.tag {
    background-color: #e0f2e7; /* Light green background for tags */
    color: #388e3c; /* Green text for tags */
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    text-transform: capitalize;
}

.fungus {
    background-color: #ffe0b2; /* Light orange for fungus */
    color: #e65100; /* Dark orange for fungus */
}

/* New style for Nematode tag */
.nematode {
    background-color: #cddc39; /* Light olive green for nematode */
    color: #558b2f; /* Darker olive green for nematode */
}

.scientific-name {
    color: #777;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.affected-crops {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.crop {
    background-color: #f1f8e9; /* Very light green for crops */
    color: #388e3c;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 0.8em;
}

.more-crops {
    background-color: transparent;
    color: #388e3c;
    border: none;
    padding: 5px 0;
    font-size: 0.8em;
    cursor: pointer;
    outline: none;
}

.more-crops:hover {
    text-decoration: underline;
}
  .footer {
    background: #146837;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 40px 20px;
  }
  
  .footer-col {
    max-width: 300px;
  }
  
  .footer-col h3 {
    margin-bottom: 15px;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-col ul li {
    margin: 8px 0;
  }
  
  .footer input[type="email"] {
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    width: 100%;
  }
  .footer {
    background-color: #0d7035;
    color: white;
    padding: 50px 20px 20px;
    font-family: Arial, sans-serif;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
  }
  
  .footer-section {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-section h3,
  .footer-section h4 {
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  .footer-section p {
    font-size: 0.95em;
    line-height: 1.6;
  }
  
  .social-icons a {
    margin-right: 10px;
    color: white;
    font-size: 1.2em;
    text-decoration: none;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
  }
  
  .footer-section ul li a {
    color: white;
    text-decoration: none;
  }
  
  .footer-section ul li a:hover {
    text-decoration: underline;
  }
  
  .footer-section form input,
  .footer-section form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
  }
  
  .footer-section form textarea {
    height: 80px;
  }
  
  .footer-section form button {
    background-color: #1ab64f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .footer-section form button:hover {
    background-color: #149d41;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    border-top: 1px solid #15733c;
    padding-top: 20px;
  }