/* Gallery Hero Section */
.gallery-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../../images/Ntonarch mixed.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 2rem 4rem;
  margin-top: 60px;
}

.gallery-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Filter Section */
.gallery-filters {
  padding: 2rem;
  background: #ff8c00;
  position: sticky;
  top: 60px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  background: #ff8c00;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: none;
}

.filter-btn:hover,
.filter-btn.active {
  background: #e67e00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Crop Dropdown Styles */
.crop-dropdown {
  position: relative;
  display: inline-block;
}

.crop-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crop-dropdown-btn i {
  transition: transform 0.3s ease;
}

.crop-dropdown.active .crop-dropdown-btn i {
  transform: rotate(180deg);
}

.crop-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  margin-top: 0.5rem;
  max-width: 260px;
  word-break: break-word;
  z-index: 1000;
  max-height: 320px; /* Limit dropdown height */
  overflow-y: auto; /* Enable vertical scroll if needed */
}

.crop-dropdown.active .crop-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block !important;
}

.crop-category {
  padding: 1rem;
  border-bottom: none !important;
}

.crop-category:last-child {
  border-bottom: none;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  background: #f8f9fa;
  margin-bottom: 0.5rem;
}

.category-link:hover {
  background: #ff8c00;
  color: white;
  transform: translateX(5px);
}

.category-link h4 {
  margin: 0;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-link i {
  transition: transform 0.3s ease;
}

.category-link.active i {
  transform: rotate(90deg);
}

.sub-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f9fa;
  border-radius: 5px;
  margin-top: 0.5rem;
}

.sub-dropdown.active {
  max-height: 500px;
  overflow-y: auto;
}

.sub-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}

.sub-dropdown li {
  margin: 0.2rem 0;
  display: block;
}

.sub-dropdown a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.sub-dropdown a:hover {
  background: #ff8c00;
  color: white;
  transform: translateX(5px);
}

/* Dark theme support for crop dropdown */
body.dark-theme .crop-dropdown-content {
  background: #2c2c2c;
  border: 1px solid #444;
}

body.dark-theme .category-link {
  background: #3a3a3a;
  color: #fff;
}

body.dark-theme .category-link:hover {
  background: #ff8c00;
  color: white;
}

body.dark-theme .sub-dropdown {
  background: #3a3a3a;
}

body.dark-theme .sub-dropdown a {
  color: #fff;
}

body.dark-theme .sub-dropdown a:hover {
  background: #ff8c00;
  color: white;
}

body.dark-theme .crop-category {
  border-bottom-color: #444;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: #ff8c00;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-caption {
  padding: 1.5rem;
  background: white;
  position: relative;
  z-index: 2;
  color: #333;
}

.gallery-caption h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.gallery-caption p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-tags .tag {
  background: #f57c00;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.gallery-tags .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

/* Video Gallery Section */
.video-gallery {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.video-gallery h2 {
  text-align: center;
  color: #228b22;
  margin-bottom: 2rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-item video {
  width: 100%;
  height: auto;
}

.video-caption {
  padding: 1.5rem;
}

.video-caption h3 {
  margin: 0 0 0.5rem;
  color: #333;
}

.video-caption p {
  margin: 0;
  color: #666;
}

/* Social Media Integration */
.social-media-gallery {
  padding: 4rem 2rem;
}

.social-media-gallery h2 {
  text-align: center;
  color: #228b22;
  margin-bottom: 2rem;
}

.social-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.instagram-feed,
.facebook-feed {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Seasonal Albums */
.seasonal-albums {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.seasonal-albums h2 {
  text-align: center;
  color: #228b22;
  margin-bottom: 2rem;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.album-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.album-card:hover {
  transform: translateY(-5px);
}

.album-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.album-info {
  padding: 1.5rem;
}

.album-info h3 {
  margin: 0 0 0.5rem;
  color: #333;
}

.album-info p {
  margin: 0 0 1rem;
  color: #666;
}

.view-album-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ff8c00;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s ease;
}

.view-album-btn:hover {
  background: #e67e00;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-hero h1 {
    font-size: 2rem;
  }

  .filter-container {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 200px;
  }

  /* Mobile styles for crop dropdown */
  .crop-dropdown {
    width: 100%;
    max-width: 200px;
  }

  .crop-dropdown-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 0;
  }

  .crop-dropdown.active .crop-dropdown-content {
    transform: translate(-50%, -50%);
  }

  .crop-category {
    padding: 1.5rem;
  }

  .category-link {
    padding: 1rem;
    font-size: 1rem;
  }

  .category-link h4 {
    font-size: 1rem;
  }

  .sub-dropdown.active {
    max-height: 400px;
    overflow-y: auto;
  }

  .sub-dropdown a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .social-feed {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Lightbox Customization */
.lb-data .lb-caption {
  font-size: 1.1rem;
  font-weight: bold;
}

.lb-data .lb-number {
  font-size: 0.9rem;
}

/* Animation for Gallery Items */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Theme Toggle Button Styles */
.theme-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  color: #ff8c00;
  transform: scale(1.1);
}

/* Dark Theme Styles */
body.dark-theme {
  background-color: #1a1a1a;
  color: #ffffff;
  transition: all 0.3s ease;
}

body.dark-theme .gallery-filters {
  background: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .filter-btn {
  background: #3d3d3d;
  color: #ffffff;
  border: 1px solid #4d4d4d;
}

body.dark-theme .filter-btn:hover,
body.dark-theme .filter-btn.active {
  background: #ff8c00;
  border-color: #ff8c00;
}

body.dark-theme .gallery-item {
  background: #2d2d2d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .gallery-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

body.dark-theme .video-gallery,
body.dark-theme .seasonal-albums {
  background: #2d2d2d;
}

body.dark-theme .video-item,
body.dark-theme .instagram-feed,
body.dark-theme .facebook-feed,
body.dark-theme .album-card {
  background: #3d3d3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .video-caption h3,
body.dark-theme .album-info h3 {
  color: #ffffff;
}

body.dark-theme .video-caption p,
body.dark-theme .album-info p {
  color: #cccccc;
}

body.dark-theme .social-media-gallery h2,
body.dark-theme .video-gallery h2,
body.dark-theme .seasonal-albums h2 {
  color: #ff8c00;
}

body.dark-theme .theme-btn {
  color: #ffffff;
}

body.dark-theme .theme-btn:hover {
  color: #ff8c00;
}

/* Light Theme Styles (Default) */
body {
  background-color: #ffffff;
  color: #333333;
  transition: all 0.3s ease;
}

.gallery-filters {
  background: #f8f9fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.filter-btn:hover,
.filter-btn.active {
  background: #ff8c00;
  color: #ffffff;
  border-color: #ff8c00;
}

.gallery-item {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.video-gallery,
.seasonal-albums {
  background: #f8f9fa;
}

.video-item,
.instagram-feed,
.facebook-feed,
.album-card {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-caption h3,
.album-info h3 {
  color: #333333;
}

.video-caption p,
.album-info p {
  color: #666666;
}

.social-media-gallery h2,
.video-gallery h2,
.seasonal-albums h2 {
  color: #228b22;
}

/* Add transitions for smooth theme switching */
.gallery-item,
.video-item,
.instagram-feed,
.facebook-feed,
.album-card,
.filter-btn,
.gallery-filters,
.video-gallery,
.seasonal-albums,
body {
  transition: all 0.3s ease;
}

/* Cocoa Harvest Gallery Styles */
.cocoa-harvest-gallery {
  padding: 4rem 2rem;
  background: #f8f9fa;
  min-height: 100vh;
}

.cocoa-harvest-gallery.highlighted {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: inset 0 0 50px rgba(255, 140, 0, 0.1);
}

/* Cassava Harvest Gallery Styles */
.cassava-harvest-gallery {
  padding: 4rem 2rem;
  background: #f8f9fa;
  min-height: 100vh;
}

.cassava-harvest-gallery.highlighted {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: inset 0 0 50px rgba(255, 140, 0, 0.1);
}

/* Cocoa Gallery Grid */
.cocoa-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

/* Cassava Gallery Grid */
.cassava-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

/* Cocoa Gallery Items */
.cocoa-gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

/* Cassava Gallery Items */
.cassava-gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

/* Cocoa Gallery Item Hover */
.cocoa-gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Cassava Gallery Item Hover */
.cassava-gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Cocoa Gallery Images */
.cocoa-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Cassava Gallery Images */
.cassava-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Cocoa Gallery Image Hover */
.cocoa-gallery-item:hover img {
  transform: scale(1.05);
}

/* Cassava Gallery Image Hover */
.cassava-gallery-item:hover img {
  transform: scale(1.05);
}

/* Cocoa Caption */
.cocoa-caption {
  padding: 1.5rem;
  background: white;
  position: relative;
  z-index: 2;
}

/* Cassava Caption */
.cassava-caption {
  padding: 1.5rem;
  background: white;
  position: relative;
  z-index: 2;
}

/* Cocoa Caption Hover */
.cocoa-gallery-item:hover .cocoa-caption {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

/* Cassava Caption Hover */
.cassava-gallery-item:hover .cassava-caption {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

/* Cocoa Caption Headings */
.cocoa-caption h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Cassava Caption Headings */
.cassava-caption h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Cocoa Caption Paragraphs */
.cocoa-caption p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Cassava Caption Paragraphs */
.cassava-caption p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Cocoa Tags */
.cocoa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Cassava Tags */
.cassava-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Cocoa Tag Styling */
.cocoa-tags .tag {
  background: #ff8c00;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Cassava Tag Styling */
.cassava-tags .tag {
  background: #ff8c00;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Cocoa Tag Hover */
.cocoa-tags .tag:hover {
  background: #e67e00;
  transform: translateY(-2px);
}

/* Cassava Tag Hover */
.cassava-tags .tag:hover {
  background: #e67e00;
  transform: translateY(-2px);
}

/* Cocoa Timeline */
.cocoa-timeline {
  max-width: 1000px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Cassava Timeline */
.cassava-timeline {
  max-width: 1000px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Cocoa Timeline Heading */
.cocoa-timeline h3 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* Cassava Timeline Heading */
.cassava-timeline h3 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: #228b22;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Timeline Container Styles */
.timeline-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #228b22, #ff8c00);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  background: white;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-width: 120px;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: #228b22;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-content p {
  color: #666;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Responsive Design for Cocoa Gallery */
@media (max-width: 768px) {
  .cocoa-harvest-gallery {
    padding: 2rem 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .cocoa-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cocoa-gallery-item img {
    height: 250px;
  }

  .cocoa-caption {
    padding: 1.5rem;
  }

  .timeline-container {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-container::before {
    display: none;
  }

  .timeline-item {
    width: 100%;
    max-width: 300px;
  }
}

/* Responsive Design for Cassava Gallery */
@media (max-width: 768px) {
  .cassava-harvest-gallery {
    padding: 2rem 1rem;
  }

  .cassava-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cassava-gallery-item img {
    height: 250px;
  }

  .cassava-caption {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cocoa-gallery-item img {
    height: 200px;
  }

  .cocoa-caption h3 {
    font-size: 1.2rem;
  }

  .cocoa-caption p {
    font-size: 0.9rem;
  }

  .cassava-gallery-item img {
    height: 200px;
  }

  .cassava-caption h3 {
    font-size: 1.2rem;
  }

  .cassava-caption p {
    font-size: 0.9rem;
  }
}

/* Dark theme support for cocoa gallery */
body.dark-theme .cocoa-harvest-gallery {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-theme .section-header h2,
body.dark-theme .cocoa-timeline h3 {
  color: #48bb78;
}

body.dark-theme .section-header p {
  color: #cbd5e0;
}

body.dark-theme .cocoa-gallery-item {
  background: #2d3748;
}

body.dark-theme .timeline-item {
  background: #2d3748;
  color: #e2e8f0;
}

body.dark-theme .timeline-content h4 {
  color: #48bb78;
}

body.dark-theme .timeline-content p {
  color: #cbd5e0;
}

/* Dark theme support for cassava gallery */
body.dark-theme .cassava-harvest-gallery {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-theme .cassava-timeline h3 {
  color: #48bb78;
}

body.dark-theme .cassava-gallery-item {
  background: #2c2c2c;
  border: 1px solid #444;
}

/* Maize Harvest Gallery Styles */
.maize-harvest-gallery {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  min-height: 100vh;
}

.maize-harvest-gallery.highlighted {
  background: linear-gradient(135deg, #ffe0b2 0%, #fff3e0 100%);
  animation: fadeIn 0.8s ease-in-out;
}

.maize-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.maize-gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid transparent;
}

.maize-gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
  border-color: #ffc107;
}

.maize-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 13px 13px 0 0;
}

.maize-gallery-item:hover img {
  transform: scale(1.05);
}

.maize-caption {
  padding: 1.5rem;
  background: white;
  transition: all 0.3s ease;
}

.maize-gallery-item:hover .maize-caption {
  background: #fff8e1;
}

.maize-caption h3 {
  color: #f57c00;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.maize-caption p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.maize-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.maize-tags .tag {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.maize-tags .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.maize-timeline {
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffc107;
}

.maize-timeline h3 {
  text-align: center;
  color: #f57c00;
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.maize-timeline h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border-radius: 2px;
}

/* Responsive Design for Maize Gallery */
@media (max-width: 768px) {
  .maize-harvest-gallery {
    padding: 2rem 1rem;
  }

  .maize-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .maize-gallery-item img {
    height: 200px;
  }

  .maize-caption {
    padding: 1rem;
  }

  .timeline-container {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-container::before {
    display: none;
  }

  .timeline-item {
    width: 100%;
    text-align: center;
    position: relative;
  }
}

@media (max-width: 480px) {
  .maize-gallery-item img {
    height: 180px;
  }

  .maize-caption h3 {
    font-size: 1.1rem;
  }

  .maize-caption p {
    font-size: 0.9rem;
  }
}

/* Dark Theme Support for Maize Gallery */
body.dark-theme .maize-harvest-gallery {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

body.dark-theme .maize-timeline h3 {
  color: #ffc107;
}

body.dark-theme .maize-gallery-item {
  background: #2c2c2c;
  border: 1px solid #444;
}

body.dark-theme .timeline-item {
  background: #2c2c2c;
  border: 1px solid #444;
}

body.dark-theme .timeline-content h4 {
  color: #ffc107;
}

body.dark-theme .timeline-content p {
  color: #ccc;
}

body.dark-theme .maize-timeline {
  background: #2c2c2c;
  border-color: #ffc107;
}

body.dark-theme .maize-timeline h3 {
  color: #ffc107;
}

body.dark-theme .maize-gallery-item {
  background: #2c2c2c;
  border: 1px solid #444;
}

/* Rice Harvest Gallery Styles */
.rice-harvest-gallery {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  min-height: 100vh;
}

.rice-harvest-gallery.highlighted {
  background: linear-gradient(135deg, #ffe0b2 0%, #fff3e0 100%);
  animation: fadeIn 0.8s ease-in-out;
}

.rice-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.rice-gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid transparent;
}

.rice-gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
  border-color: transparent;
}

.rice-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 13px 13px 0 0;
}

.rice-gallery-item:hover img {
  transform: scale(1.05);
}

.rice-caption {
  padding: 1.5rem;
  background: white;
  transition: all 0.3s ease;
}

.rice-gallery-item:hover .rice-caption {
  background: #e0f7fa;
}

.rice-caption h3 {
  color: #388e3c;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: none !important;
  box-shadow: none !important;
}

.rice-caption h3::after,
.rice-caption h3::before {
  content: none !important;
  display: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.rice-caption p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.rice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.rice-tags .tag {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.rice-tags .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.rice-timeline {
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: none;
}

.rice-timeline h3 {
  text-align: center;
  color: #f57c00;
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.rice-timeline h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: none;
  border-radius: 2px;
}

/* Responsive Design for Rice Gallery */
@media (max-width: 768px) {
  .rice-harvest-gallery {
    padding: 2rem 1rem;
  }
  .rice-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  .rice-gallery-item img {
    height: 200px;
  }
  .rice-caption {
    padding: 1rem;
  }
  .timeline-container {
    flex-direction: column;
    gap: 2rem;
  }
  .timeline-container::before {
    display: none;
  }
  .timeline-item {
    width: 100%;
    text-align: center;
    position: relative;
  }
}

@media (max-width: 480px) {
  .rice-gallery-item img {
    height: 180px;
  }
  .rice-caption h3 {
    font-size: 1.1rem;
  }
  .rice-caption p {
    font-size: 0.9rem;
  }
}

body.dark-theme .rice-harvest-gallery {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}
body.dark-theme .rice-timeline h3 {
  color: #ffc107;
}
body.dark-theme .rice-gallery-item {
  background: #2c2c2c;
  border: 1px solid #444;
}
body.dark-theme .rice-timeline {
  background: #2c2c2c;
  border-color: #ffc107;
}
body.dark-theme .rice-timeline h3 {
  color: #ffc107;
}
body.dark-theme .rice-gallery-item {
  background: #2c2c2c;
  border: 1px solid #444;
}

/* Rice Farm Gallery Redesign */
.rice-section-header {
  background: linear-gradient(90deg, #2ecc40 0%, #ff6b00 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(44, 204, 64, 0.08);
  text-align: center;
}

.redesigned-rice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.rice-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(44, 204, 64, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #2ecc40;
  display: flex;
  flex-direction: column;
}
.rice-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(44, 204, 64, 0.18);
  border-color: #ff6b00;
}
.rice-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: none !important;
}
.rice-caption {
  padding: 1rem;
  background: #fff;
  color: #222;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rice-caption h3 {
  color: #2ecc40;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.rice-caption p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.rice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rice-tags .tag {
  background: #ff6b00;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Timeline Redesign */
.redesigned-rice-timeline {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(44, 204, 64, 0.08);
  margin-top: 2rem;
  padding: 2rem 1rem;
}
.rice-timeline-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.rice-timeline-item {
  flex: 1 1 160px;
  min-width: 160px;
  max-width: 220px;
  background: #f8f8f8;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 1px 6px rgba(44, 204, 64, 0.06);
  margin-bottom: 1rem;
}
.rice-timeline-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
  background: #2ecc40;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(44, 204, 64, 0.1);
}
@media (max-width: 900px) {
  .rice-timeline-container {
    flex-direction: column;
    gap: 1rem;
  }
  .rice-timeline-item {
    max-width: 100%;
  }
}

.cassava-caption a,
.cassava-caption a:visited,
.cassava-caption a:hover,
.cassava-caption a:active,
.cocoa-caption a,
.cocoa-caption a:visited,
.cocoa-caption a:hover,
.cocoa-caption a:active,
.gallery-caption a,
.gallery-caption a:visited,
.gallery-caption a:hover,
.gallery-caption a:active {
  text-decoration: none !important;
  color: inherit !important;
}

/* Palm Oil Gallery Grid: Force 3 columns per row on desktop */
.palm-oil-gallery-grid.redesigned-rice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

@media (max-width: 900px) {
  .palm-oil-gallery-grid.redesigned-rice-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
}

/* Groundnuts Harvest Gallery */
.groundnuts-harvest-gallery {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: none;
}

.groundnuts-harvest-gallery.highlighted {
  display: block !important;
  animation: fadeIn 0.5s ease-out forwards;
}

.groundnuts-harvest-gallery[style*="display: block"] {
  display: block !important;
}

.groundnuts-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.groundnuts-gallery-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.groundnuts-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.groundnuts-gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.groundnuts-gallery-item:hover img {
  transform: scale(1.05);
}

.groundnuts-caption {
  padding: 1.5rem;
  background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.groundnuts-gallery-item:hover .groundnuts-caption {
  transform: translateY(0);
}

.groundnuts-caption h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.groundnuts-caption p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #f0f0f0;
}

.groundnuts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.groundnuts-tags .tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.groundnuts-tags .tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.groundnuts-timeline {
  background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.groundnuts-timeline h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: bold;
  position: relative;
}

.groundnuts-timeline h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ffd700 0%, #ffa500 100%);
  border-radius: 2px;
}

/* Responsive Design for Groundnuts Gallery */
@media (max-width: 768px) {
  .groundnuts-harvest-gallery {
    padding: 1rem;
  }

  .groundnuts-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .groundnuts-gallery-item img {
    height: 200px;
  }

  .groundnuts-caption {
    padding: 1rem;
  }

  .timeline-container {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-container::before {
    display: none;
  }

  .timeline-item {
    flex-direction: row;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .groundnuts-gallery-item img {
    height: 180px;
  }

  .groundnuts-caption h3 {
    font-size: 1.1rem;
  }

  .groundnuts-caption p {
    font-size: 0.9rem;
  }
}

/* Dark Theme Support for Groundnuts Gallery */
body.dark-theme .groundnuts-harvest-gallery {
  background: #1a1a1a;
}

body.dark-theme .groundnuts-timeline h3,
body.dark-theme .section-header h2,
body.dark-theme .section-header p {
  color: #fff;
}

body.dark-theme .groundnuts-gallery-item {
  background: #2c2c2c;
  border: 1px solid #444;
}

body.dark-theme .timeline-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
}

body.dark-theme .timeline-content h4 {
  color: #ffd700;
}

body.dark-theme .timeline-content p {
  color: #ccc;
}

body.dark-theme .groundnuts-harvest-gallery {
  background: #1a1a1a;
}

body.dark-theme .groundnuts-timeline h3 {
  color: #ffd700;
}

body.dark-theme .groundnuts-gallery-item {
  background: #2c2c2c;
  border: 1px solid #444;
}

/* Melon Gallery - match Groundnuts Gallery */
.melon-harvest-gallery {
  /* match .groundnuts-harvest-gallery */
  margin: 0 auto 3rem auto;
  max-width: 1200px;
  padding: 2rem 0;
  display: block;
}
.melon-harvest-gallery.highlighted {
  animation: fadeIn 0.5s ease-out forwards;
  box-shadow: 0 4px 24px rgba(255, 140, 0, 0.08);
  border-radius: 1rem;
}
.melon-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.melon-gallery-item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(255, 140, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.melon-gallery-item:hover {
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.18);
  transform: translateY(-4px) scale(1.02);
}
.melon-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  transition: filter 0.3s;
}
.melon-gallery-item:hover img {
  filter: brightness(0.95) contrast(1.05);
}
.melon-caption {
  padding: 1.2rem 1rem 1rem 1rem;
  flex: 1;
}
.melon-gallery-item:hover .melon-caption {
  background: #fff8f0;
}
.melon-caption h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff6b00;
  margin-bottom: 0.5rem;
}
.melon-caption p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.7rem;
}
.melon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.melon-tags .tag {
  background: #ffefdb;
  color: #ff6b00;
  border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
  transition: background 0.2s, color 0.2s;
}
.melon-tags .tag:hover {
  background: #ff6b00;
  color: #fff;
}
.melon-timeline {
  margin-top: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(255, 140, 0, 0.08);
  padding: 2rem 1rem;
}
.melon-timeline h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.honey-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.honey-gallery-grid .gallery-item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s;
}

.honey-gallery-grid .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .honey-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .honey-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.honey-timeline h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.honey-timeline .timeline-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.honey-timeline .timeline-item {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 180px;
  background: #fffbea;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.08);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.honey-timeline .timeline-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Yam Gallery Grid: 3 images per line */
.yam-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .yam-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .yam-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Center The Yam Journey heading and timeline */
.yam-timeline h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.yam-timeline .timeline-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.yam-timeline .timeline-item {
  flex: 1 1 180px;
  max-width: 220px;
  min-width: 160px;
  text-align: center;
}

.yam-timeline {
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 3rem 2rem;
}

/* Timber Gallery Grid: 3 columns */
.timber-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .timber-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .timber-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Water Yam Gallery Grid: 3 images per line */
.water-yam-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .water-yam-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .water-yam-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.water-yam-timeline-header {
  text-align: center;
  background: #ff6b00;
  color: #fff;
  padding: 1rem 0;
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

/* Cocoa Yam Gallery Grid: 3 images per line */
.cocoa-yam-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .cocoa-yam-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cocoa-yam-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Add or update the Beans Gallery grid layout */
.beans-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .beans-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (max-width: 600px) {
  .beans-gallery-grid {
    grid-template-columns: 1fr;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Center and style the Beans Journey timeline heading */
.beans-timeline {
  text-align: center;
  margin-top: 2rem;
}
.beans-timeline h3 {
  color: #ff6b00;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.timber-timeline {
  margin-top: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.08);
  padding: 2rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.timber-timeline h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #8b4513;
}
.timber-timeline .timeline-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.timber-timeline .timeline-item {
  flex: 1 1 180px;
  max-width: 220px;
  min-width: 160px;
  background: #fff8f0;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.08);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.timber-timeline .timeline-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.plantain-banana-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

@media (max-width: 900px) {
  .plantain-banana-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 600px) {
  .plantain-banana-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }
}

.plantain-banana-timeline {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.08);
  border: 2px solid #ffb74d;
  margin: 2rem auto 0 auto;
  max-width: 900px;
  text-align: center;
}

.plantain-banana-timeline h3 {
  text-align: center;
  color: #ff9800;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.plantain-banana-timeline h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
  border-radius: 2px;
}

@media (max-width: 600px) {
  .plantain-banana-timeline {
    padding: 1.5rem 0.5rem;
  }
  .plantain-banana-timeline h3 {
    font-size: 1.2rem;
  }
}

/* Orange Gallery Grid: 3 per row */
.orange-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .orange-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .orange-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.orange-timeline h3 {
  text-align: center;
  color: #ff8c00;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Okra Gallery Grid: 3 images per line */
.okra-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .okra-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .okra-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Okra Timeline Orange Theme */
.okra-timeline {
  margin-top: 2rem;
  background: #fff8f0;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(255, 140, 0, 0.08);
  padding: 2rem 1rem;
  border: 2px solid #ff8c00;
}
.okra-timeline h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #ff8c00;
}
.okra-timeline .timeline-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.okra-timeline .timeline-item {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 180px;
  background: #fff3e0;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(255, 140, 0, 0.08);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1.5px solid #ff8c00;
}
.okra-timeline .timeline-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ff8c00;
}
.okra-timeline .timeline-content h4 {
  color: #ff8c00;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.okra-timeline .timeline-content p {
  color: #444;
  font-size: 1rem;
}

/* Ogbono Gallery Grid - 3 columns */
.ogbono-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .ogbono-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ogbono-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Make the category links (CASH CROPS, FOOD CROPS) smaller and more compact */
.crop-dropdown-content .category-link {
  font-size: 0.95rem;
  padding: 0.3em 0.7em;
  margin: 0.2em 0;
  min-width: 0;
  line-height: 1.2;
}

.crop-dropdown-content .category-link h4 {
  font-size: 1em;
  margin: 0;
  font-weight: 600;
}

.crop-dropdown-content .crop-category {
  margin-bottom: 0.3em;
}

/* Optionally, reduce icon size */
.crop-dropdown-content .category-link i {
  font-size: 0.9em;
}

.crop-dropdown-content .crop-category {
  margin-bottom: 0.1em; /* Reduce space between categories */
}

/* Prevent dropdown from covering unrelated sections */
.crop-dropdown-content {
  max-width: 260px;
  word-break: break-word;
  z-index: 1000;
  max-height: 320px; /* Limit dropdown height */
  overflow-y: auto; /* Enable vertical scroll if needed */
}

/* Optionally, make sure dropdown stays within viewport */
.crop-dropdown {
  position: relative;
}
.crop-dropdown-content {
  position: absolute;
  left: 0;
  top: 100%;
  box-sizing: border-box;
}

.crop-dropdown-content .crop-category {
  margin-bottom: 0; /* Remove space between categories */
}
.crop-dropdown-content .category-link {
  margin: 0; /* Remove extra margin */
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}
