/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-height: 80px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  margin-right: 0;
  height: 100%;
}

.nav-links {
  margin-left: 2rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 1rem;
}

.language-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.75rem;
  font-size: 1rem;
  line-height: 32px;
}

/* Contact Section */
.contact {
  background: #2c3e50;
  color: white;
  padding: 4rem 0;
  margin: 0 -1rem;
  width: calc(100% + 2rem);
}

/* Language Switch */
.language-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

/* Footer Section */
.footer-section {
  background: #5a9b61;
  color: white;
  padding: 4rem 0 2rem;
  margin: 0 -1rem;
  width: calc(100% + 2rem);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 2rem;
}

.logo-icon {
  width: 120px;
  height: 96px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1abc9c;
}

.language-switch {
  display: flex;
  gap: 0.5rem;
}

.language-switch button {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 32px;
  line-height: 32px;
}

.language-switch button:hover {
  background: white;
  color: #2c3e50;
}

/* Main content */
main {
  width: 100%;
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  main {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  main {
    padding: 0 1rem;
  }

  header {
    padding: 0.5rem 0;
  }

  .header-left, .header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
  }

  .logo-container {
    margin-left: 1rem;
  }

  .new-carousel {
    height: 40vh;
    min-height: 300px;
  }

  .caption {
    max-width: 80%;
    margin-left: 2%;
    padding: 1rem;
  }

  .about-container {
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-section {
    padding: 2rem 0;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.about-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.learn-more-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #1abc9c;
  transform: translateY(-2px);
}

/* Products Page Specific Styles */
.products-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.products-page .category {
  margin-bottom: 3rem;
}

.products-page .category h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.products-page .product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.products-page .product-item {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-page .product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.products-page .product-item img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.products-page .category[data-category="snack"] .product-item,
.products-page .category[data-category="grain"] .product-item {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.products-page .category[data-category="snack"] .product-item img,
.products-page .category[data-category="grain"] .product-item img {
  max-height: 240px;
  width: 90%;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.products-page .category[data-category="snack"] .product-item,
.products-page .category[data-category="grain"] .product-item {
  height: 320px;
}

.products-page .product-info {
  padding: 1rem;
  text-align: center;
}

.products-page .product-info h4 {
  color: #2c3e50;
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.products-page .product-info p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .products-page .product-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .products-page .product-item img {
    height: 150px;
  }
}

/* Footer Section */
.footer-section {
  background: #2c3e50;
  color: white;
  padding: 4rem 0 2rem;
  margin: 0 -1rem;
  width: calc(100% + 2rem);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

footer {
  text-align: center;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.product-link:hover {
  color: #1abc9c;
}

/* New Carousel styles */
.new-carousel {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  border-radius: 8px;
  margin: 2rem 0;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.caption {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  max-width: 50%;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  margin-left: 5%;
  z-index: 2;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 10;
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: white;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* New Media Section */
.new-media-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.media-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.media-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.media-content {
  flex: 1;
  height: 200px;
  overflow: hidden;
}

.media-content img,
.media-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-title {
  padding: 1.5rem;
  text-align: center;
  background: white;
}

.media-title h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.5rem 0;
}
