/* General Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
   font-family: Arial, sans-serif;
  margin: 0;
  background: url('images/background.png') no-repeat center center fixed;
  background-size: cover;
  /* Optional: add a slight overlay */
  color: white; /* If needed for contrast */
}

/* Header */
header {
  background-color: #2d7a2d;
  padding: 1rem 2rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  user-select: none;
}

nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

nav a:hover,
nav a:focus {
  background-color: #1f5c1f;
  outline: none;
}

/* Banner Section */
.banner {
  background: url('https://images.unsplash.com/photo-1573055731894-73e31c1d463b?auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
  color: white;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background-color: rgba(0,0,0,0.45);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  max-width: 900px;
  margin-bottom: 1rem;
  user-select: none;
}

.banner p {
  font-size: 1.2rem;
  font-weight: 500;
  background-color: rgba(0,0,0,0.35);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  max-width: 700px;
  user-select: none;
}

.banner .cta-btn {
  margin-top: 1.5rem;
  background-color: #f4b41a;
  color: #2d7a2d;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(244, 180, 26, 0.5);
  transition: background-color 0.3s ease;
}

.banner .cta-btn:hover,
.banner .cta-btn:focus {
  background-color: #dfa300;
  outline: none;
}

/* Main content container */
main {
  flex: 1 0 auto;
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

/* Section headings */
h2 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2rem;
  border-bottom: 3px solid #2d7a2d;
  padding-bottom: 0.2rem;
}

/* Callout section */
.callout {
  background-color: #03C04A;
  padding: 1.8rem 1.5rem;
  border-left: 6px solid #2d7a2d;
  margin-top: 3rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
}

.callout h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Products grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

/* Individual product card */
.product-card {
  background-color: #03C04A;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  transition: transform 0.25s ease;
  cursor: default;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  outline: none;
}

.product-card img {
  border-radius: 6px;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
  user-select: none;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2d7a2d;
}

.product-card p {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.farm-info {
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
  margin-top: 0.2rem;
  user-select: none;
}

/* Button styling */
button,
.cta-btn {
  background: #2d7a2d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

button:hover,
.cta-btn:hover,
button:focus,
.cta-btn:focus {
  background-color: #215b21;
  outline: none;
}

/* See More link */
.see-more {
  display: inline-block;
  margin-top: 1rem;
  color: #e1e7e1;
  text-decoration: none;
  font-weight: 600;
  user-select: none;
  transition: text-decoration 0.25s ease;
}

.see-more:hover,
.see-more:focus {
  text-decoration: underline;
  outline: none;
}

/* Filters section */
.filters {
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.filters label {
  font-weight: 600;
  color: #2d7a2d;
}

.filters select {
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  user-select: none;
}

/* Farmer gallery */
.farmer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.farmer-card {
  background: #03C04A;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  padding: 1rem;
  text-align: center;
  user-select: none;
}

.farmer-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.8rem;
}

.farmer-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.1rem;
  color: #e8f0e8;
}

.farmer-card p {
  font-size: 0.9rem;
  color: #e9dfdf;
  font-style: italic;
}

/* Village Heads list */
main ul {
  list-style-type: disc;
  padding-left: 1.3rem;
  color: #333;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

main ul li {
  margin-bottom: 0.6rem;
}

/* About page lists */
main ul li {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #e7ebe7;
}

/* Form styles */
form {
  max-width: 500px;
  background: #03C04A;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

form label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color:white;
  user-select: none;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
}

form textarea {
  min-height: 100px;
}

form button {
  width: 100%;
}

/* Footer */
footer {
  background-color: #2d7a2d;
  color: white;
  text-align: center;
  padding: 1rem 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .banner h2 {
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
  }

  .banner p {
    font-size: 1rem;
  }

  main {
    margin: 1rem auto 2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 240px;
  }

  .banner h2 {
    font-size: 1.5rem;
  }

  .banner p {
    font-size: 0.9rem;
  }
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 30px; /* Space between cards */
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-card {
    background: #2d7a2d;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    color: #dde4e4;
    margin: 10px 0;
    font-size: 1.5em;
}

.product-card p {
    color: #dde4e4;
    margin: 10px 0;
    line-height: 1.6;
}

.product-card .price {
    font-size: 1.3em;
    font-weight: bold;
    color: #dde4e4;
    margin: 15px 0;
}

.product-card .farmer {
    font-style: italic;
    color: #dde4e4;
    font-size: 0.9em;
}

.buy-btn {
    background: #2c5f2d;
    color: rgb(6, 204, 16);
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.buy-btn:hover {
    background: #1e4620;
}

/* Responsive - 1 product per row on mobile */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 20px;
        padding: 20px 10px;
    }
}