/* =========================================
   ABOUT PAGE SPECIFIC STYLES
========================================= */

/* --- PAGE BANNER --- */
.page-banner {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(rgba(20, 92, 55, 0.9), rgba(20, 92, 55, 0.8)),
              url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 60px;
}

.banner-content h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.banner-content p { font-size: 1.2rem; color: #e5f3ec; font-style: italic; }

/* --- OUR STORY --- */
.story-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.story-text { flex: 1; }
.story-image { flex: 1; }
.story-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.section-tag { color: var(--green-main); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.story-text p { margin-bottom: 1.2rem; color: var(--text-muted); }

/* --- STATS COUNTER --- */
#stats { background: var(--green-main); color: var(--white); padding: 4rem 1.5rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem; max-width: var(--max-width); margin: 0 auto; text-align: center;
}
.stat-item h3 { font-size: 3rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-item p { font-size: 1rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }

/* --- CEO STATEMENT --- */
#ceo-message { background: #fdfdfd; }
.ceo-container {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; gap: 4rem; align-items: flex-start;
}
.ceo-img { flex: 0 0 300px; text-align: center; }
.ceo-img img { width: 100%; border-radius: 8px; margin-bottom: 1rem; }
.ceo-name h3 { color: var(--green-dark); margin-bottom: 0; }
.ceo-name span { color: var(--green-main); font-weight: 600; font-size: 0.9rem; }

.ceo-text { flex: 1; }
.ceo-text blockquote {
  font-size: 1.4rem; color: var(--green-main); font-style: italic;
  border-left: 4px solid var(--green-main); padding-left: 1.5rem; margin-bottom: 1.5rem;
}
.ceo-text p { margin-bottom: 1rem; line-height: 1.7; color: var(--text-muted); }
.signature { font-family: cursive; font-size: 1.2rem; margin-top: 1rem; color: var(--text-main); }

/* --- MISSION & VISION --- */
#mission-vision { background: var(--green-soft); }
.mv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; max-width: var(--max-width); margin: 0 auto;
}
.mv-card {
  background: var(--white); padding: 2.5rem; border-radius: 12px;
  border: 1px solid var(--border); transition: 0.3s;
}
.mv-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.mv-card h3 { color: var(--green-dark); margin-bottom: 1rem; }
.highlight-card { border-left: 4px solid var(--green-main); }

.values-list { padding-left: 1.5rem; }
.values-list li { list-style: circle; margin-bottom: 0.5rem; color: var(--text-muted); }

/* --- CORPORATE GIVING --- */
#giving { background: var(--white); text-align: center; }
.giving-content { max-width: 800px; margin: 0 auto; }
.lead { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 1.5rem; font-weight: 600; }
.giving-priorities {
  margin-top: 2rem; background: #f9f9f9; padding: 2rem; border-radius: 8px; text-align: left;
}
.giving-priorities ul { padding-left: 1.5rem; }
.giving-priorities li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* --- TEAM --- */
#team { background: #fdfdfd; }
.team-section h2 { text-align: center; margin-bottom: 3rem; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; max-width: var(--max-width); margin: 0 auto 4rem;
}
.team-card {
  background: var(--white); padding: 2rem; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid var(--border);
}
.team-card h3 { color: var(--green-dark); margin-bottom: 0.2rem; font-size: 1.2rem; }
.team-card span { color: var(--green-main); display: block; margin-bottom: 1rem; font-weight: 600; font-size: 0.9rem; }
.team-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===============================
   SHAREHOLDERS / BOARD SECTION
================================ */

.board-section {
  max-width: 900px;
  margin: 4rem auto 0; /* Spacing from the team section above */
  background: var(--green-soft); /* Light green background */
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.board-section h3 {
  color: var(--green-dark);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.board-list {
  list-style: none;
  padding: 0;
  display: grid;
  /* Creates 2 columns on desktop */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  text-align: left;
}

.board-list li {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column; /* Allows the 'Represented by' text to stack neatly */
  justify-content: center;
}

.board-list li strong {
  color: var(--green-main);
}

/* Mobile Responsiveness for this section */
@media (max-width: 700px) {
  .board-section {
    padding: 2rem 1rem;
  }
  
  .board-list {
    grid-template-columns: 1fr; /* Stack in 1 column on phones */
  }
}


/* ===============================
   BOARD OF DIRECTORS (Unique Layout)
================================ */

#board-directors {
  background: var(--white);
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.directors-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Header Styling */
#board-directors .section-header h2 {
  color: var(--green-dark);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.divider-line {
  width: 60px;
  height: 4px;
  background: var(--green-main);
  margin: 0 auto 3rem; /* Centers the line */
  border-radius: 2px;
}

/* The Grid */
.directors-grid {
  display: grid;
  /* Auto-fill creates a responsive tile layout */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Individual Name Plate */
.director-plate {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fdfdfd;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 8px;
  border-left: 5px solid var(--green-main); /* The green accent on the left */
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.director-plate:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: #ddd; /* Subtle border change */
}

/* Icon Styling */
.director-plate .icon {
  font-size: 1.5rem;
  background: var(--green-soft);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Name Styling */
.director-plate h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ===============================
   MANAGEMENT TEAM (Detailed List)
================================ */

#management-team {
  background: #fdfdfd; /* Slight off-white to separate sections */
  padding-bottom: 5rem;
}

.management-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.profiles-list {
  display: flex;
  flex-direction: column;
  gap: 3rem; /* Space between each person */
}

.profile-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--green-main);
}

/* Image Section */
.profile-image {
  flex: 0 0 250px; /* Fixed width for image */
  background: #eee;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content Section */
.profile-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-content h3 {
  color: var(--green-dark);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.profile-content .role {
  display: block;
  color: var(--green-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.profile-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.profile-content p:last-child {
  margin-bottom: 0;
}

/* --- Responsive Layout (Mobile) --- */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column; /* Stack image on top of text */
  }

  .profile-image {
    height: 300px; /* Fixed height for mobile image */
    width: 100%;
  }

  .profile-content {
    padding: 1.5rem;
    text-align: left;
  }
}

/* ===============================
   PARTNERS & FARMING SCHEME
================================ */

#partners-about {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.partners-about-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Header */
.partners-header {
  text-align: center;
  margin-bottom: 3rem;
}

.partners-header h2 {
  color: var(--green-dark);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
}

/* Farmer Types Cards */
.farmer-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.farmer-card {
  background: var(--green-soft); /* Light green bg */
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
}

.farmer-card:hover {
  background: var(--white);
  border-color: var(--green-main);
  box-shadow: 0 10px 20px rgba(31, 122, 74, 0.1);
  transform: translateY(-5px);
}

.farmer-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.farmer-card h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

/* Text Content Area */
.partners-content h3 {
  color: var(--green-main);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.partners-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.partners-content strong {
  color: var(--green-dark);
  font-weight: 700;
}

/* Highlight Box for "How It Works" */
.scheme-box {
  background: #fdfdfd;
  border-left: 4px solid var(--green-main);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border-radius: 0 8px 8px 0;
}

.scheme-box h4 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scheme-box p {
  margin-bottom: 0;
  font-size: 1.05rem;
}


/* ===============================
   PHOTO GALLERY
================================ */

#gallery {
  background: #f8fcf9; /* Very light green/grey tint */
  padding: 5rem 1.5rem;
}

.gallery-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* The Grid */
.gallery-grid {
  display: grid;
  /* Auto-fill ensures responsive columns (min 300px wide) */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Individual Item Wrapper */
.gallery-item {
  height: 250px; /* Uniform height for neatness */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background: #ccc; /* Placeholder bg color */
}

/* The Image */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills box without stretching */
  transition: transform 0.5s ease;
  display: block;
}

/* Hover Effect: Zoom In */
.gallery-item:hover img {
  transform: scale(1.1);
  cursor: pointer;
}

/* Responsive adjustment for small phones */
@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
  .gallery-item {
    height: 300px; /* Taller images on mobile look better */
  }
}

/* ===============================
   MISSION, VISION, PURPOSE (MVP)
================================ */

#mission-values {
  background: var(--green-soft); /* Light green background */
  padding: 5rem 1.5rem;
}

.mvp-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- THE 4 PILLARS GRID --- */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.mvp-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.mvp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(31, 122, 74, 0.1);
  border-color: var(--green-main);
}

.mvp-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mvp-card h3 {
  color: var(--green-dark);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.mvp-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- ETHICS & VALUES SECTION --- */
.ethics-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Left side wider than right */
  gap: 2rem;
}

/* Left Box: Strives To */
.strives-box {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  border-left: 5px solid var(--green-main);
}

.strives-box h3 {
  color: var(--green-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.5;
}

.check-list li::before {
  content: "✔";
  color: var(--green-main);
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: bold;
}

.ethics-note {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Right Box: Core Values */
.values-box {
  background: var(--green-dark);
  color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.values-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.values-box p {
  color: #e5f3ec;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.values-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.values-tags span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustment */
@media (max-width: 900px) {
  .ethics-wrapper {
    grid-template-columns: 1fr; /* Stack vertically on tablet/mobile */
  }
}


/* ===============================
   PRODUCT INFINITY SCROLL
================================ */

#product-showcase {
  background: var(--white);
  padding: 4rem 0; /* No side padding to let slider hit edges */
  text-align: center;
  overflow: hidden;
}

.product-slider-container {
  width: 100%;
  margin: 2rem 0 3rem;
  overflow: hidden;
  position: relative;
}

/* Optional: Fade effect on edges */
.product-slider-container::before,
.product-slider-container::after {
  background: linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 100px;
  z-index: 2;
  top: 0;
}
.product-slider-container::after {
  right: 0;
  transform: rotate(180deg);
}

/* The Track */
/* =========================================
   INFINITY PRODUCT SLIDER
========================================= */

#product-showcase {
    padding: 4rem 0;
    background: #fff;
    overflow: hidden; /* Hides the scrollbar */
}

.product-slider-container {
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
}

.product-track {
    display: flex;
    width: max-content; /* Track width adjusts to fit all items */
    gap: 30px; /* Space between items */
    animation: scroll 30s linear infinite; /* The Infinity Loop */
}

/* Individual Card Style */
.product-slide {
    flex: 0 0 auto; /* Ensures items don't shrink */
    width: 200px;   /* Fixed width for consistency */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.product-slide:hover img {
    transform: scale(1.05); /* Zoom on hover */
}

.product-slide span {
    font-weight: 600;
    color: var(--green-dark);
    font-size: 1rem;
}

/* Pause animation on hover so users can look closer */
.product-track:hover {
    animation-play-state: paused;
}

/* === THE KEYFRAMES === */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly 50% (the length of the first set) */
        transform: translateX(-50%);
    }
}

/* Animation Keyframes */
@keyframes scrollProducts {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 6)); } /* Moves half the total width */
}

/* Button Container */
.product-cta {
  margin-top: 2rem;
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .story-container, .ceo-container { flex-direction: column; }
  .story-image, .ceo-img { width: 100%; order: -1; }
  .board-list { grid-template-columns: 1fr; }
  .location-box { margin-bottom: 1.5rem; }
}