body {
    font-family: "Nobel", sans-serif;
}

.center-text {
    text-align: center;
    display: block;
}

/* Livestock Hero Section */
.livestock-hero {
  background: #f4f4f4;
  padding: 2rem 1rem;
  text-align: center;
}

.livestock-hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.livestock-hero p {
  font-size: 1.2rem;
  color: #555;
}

.livestock-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto; /* Margin auto horizontally to center */
  width: 90%; /* Set a max width to prevent it from stretching too wide */
  max-width: 1200px; /* Set a maximum width for larger screens */
}

#livestock-list {
  display: flex; /* Ensure Flexbox applies to its children */
  flex-wrap: wrap; /* Allow wrapping if there are too many items */
  justify-content: space-between; /* Adjust spacing between items */
}

/* Add spacing between items */
.livestock-item + .livestock-item {
  margin-top: 20px; /* Extra spacing between stacked items */
}

.livestock-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.livestock-item h3 {
  margin: 0.5rem 0;
  font-size: 1.4rem;
  color: #333;
}

.livestock-item p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #555;
}

.cab-icon img {
    width: 75px;  /* Adjust as needed */
    height: 75px; /* Adjust to maintain aspect ratio */
}

.epd img  {
    max-height: 600px;
    width: auto;
}

/* Testimonials Intro Section */
.testimonial-intro {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

.testimonial-intro h2 {
  color: #333;
}

.testimonial-intro a {
  color: #317137;
  text-decoration: none;
}

.testimonial-intro a:hover {
  text-decoration: underline;
}

/* Testimonials List Section */
.testimonial-list {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 4px solid #317137;
  background-color: #fefefe;
}

.testimonial p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.testimonial strong {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* Smaller mobile screens (like portrait phones) */
@media (max-width: 480px) {
  .livestock-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px; /* Add internal spacing for better visual appearance */
    flex: 1 1 100%; /* One item per row */
  }

  .livestock-itemOld {
    flex: 1 1 100%; /* One item per row */
  }

  .livestock-itemOldTwo {
    width: 90%; /* Takes 90% of the screen width */
    margin: 10px auto; /* Center the div horizontally and add spacing */
    padding: 10px; /* Add internal spacing for better visual appearance */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for separation */
    border-radius: 5px; /* Optional: Round the corners */
    background-color: #f9f9f9; /* Optional: Add a background color */
  }
}

/* Responsive Table (Mobile) */
@media (max-width: 768px) {
  .livestock-item {
    width: 45%; /* For larger screens (like tablets), use two-column layout */
    margin: 10px auto; /* Adjust spacing */
    background: #f9f9f9;
  }

  .livestock-itemOld {
    flex: 1 1 calc(50% - 20px); /* Two items per row */
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .livestock-item {
    width: 90%; /* Takes 90% of the screen width */
    margin: 10px auto; /* Center the div horizontally and add spacing */
    padding: 10px; /* Add internal spacing for better visual appearance */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for separation */
    border-radius: 5px; /* Optional: Round the corners */
    background-color: #f9f9f9; /* Optional: Add a background color */
  }
}
