/* ===== UNIVERSAL BOX SIZING RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ==== RESET & NORMALIZE ==== */

/* Reset margins/paddings and enforce box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Improve text rendering consistency */
html {
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in iOS */
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Base font & smooth rendering */
body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
  font-size: 16px;
  color: #333;
  background-color: #ffffff9c;
  -webkit-font-smoothing: antialiased; /* Smooth text in Chrome/Safari */
  -moz-osx-font-smoothing: grayscale;  /* Smooth text in Firefox */
}

/* Make images & media responsive */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove button/input inconsistencies */
button,
input,
select,
textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Ensure links inherit colors unless styled */
a {
  color: inherit;
  text-decoration: none;
}

/* Ensure forms don’t break */
form {
  width: 100%;
}

/* Reset some default styles */



/* General Styling */
:root {
    --primary-green: #4CAF50;
    --secondary-brown: #8D6E63;
    --light-grey: #f4f4f4;
    --dark-grey: #333;
    --text-color: #555;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', 'Roboto', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    overflow-x: hidden;
    min-width: 320px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile-first responsive padding */
@media (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
}

h1, h2, h3, h4 {
    color: var(--dark-grey);
}

a {
    text-decoration: none;
    color: var(--primary-green);
}



/* Hero Section */
/* General Styling (from previous response, ensure these are present) */
:root {
    --primary-green: #4CAF50;
    --secondary-brown: #8D6E63;
    --light-grey: #f4f4f4;
    --dark-grey: #333;
    --text-color: #555;
    --white: #ffffffb6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Styling */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    /* --- MODIFICATIONS START HERE --- */
    /* Add the background image and a semi-transparent overlay */
    background: linear-gradient(
        to right,
        rgba(0, 50, 27, 0.9), /* Darker overlay on the left */
        rgba(73, 211, 78, 0.5) /* Lighter overlay on the right */
    ),
    url('../assets/images/grreen image.jpg'); /* Replace with your image path */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* --- MODIFICATIONS END HERE --- */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* No other changes needed for the rest of your provided CSS */

/* Mobile-first responsive adjustments */
@media (min-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 80px 0;
    }
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

/* Tablet and desktop layout */
@media (min-width: 768px) {
    .hero-section .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 40px;
    }
}

/* Hero Content - Text Area */
.hero-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    z-index: 2;
}

@media (min-width: 768px) {
    .hero-content {
        min-width: 300px;
        max-width: 50%;
    }
}

.hero-content .tagline {
    font-size: 1.9em;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: rgba(229, 255, 0, 0.715);
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    word-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 576px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

.hero-content p { /* Assuming you add a paragraph here, if not, remove */
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .features {
    list-style: none;
    padding: 0;
    margin-top: 35px;
}

.hero-content .features li {
    font-size: 1.1em;
    margin-bottom: 15px;
    display:inline;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .features li::before {
    content: '\2713'; /* Checkmark icon */
    color: var(--white);
    font-weight: bold;
    margin-right: 10px;
}


/* Call-to-Action Button */
.cta-btn {
    background-color: var(--white);
    color: var(--primary-green);
    padding: 15px 30px;
    border: none;
    border-radius: 50px; /* Rounded corners */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    background-color:rgba(119, 255, 0, 1);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Mockup Slideshow Container (hero-visual) */
.slideshow-container {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9/16;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
    margin: 0 auto;
    z-index: 2;
}

@media (min-width: 576px) {
    .slideshow-container {
        max-width: 350px;
    }
}

@media (min-width: 768px) {
    .slideshow-container {
        flex: 1;
        max-width: 450px;
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .slideshow-container {
        max-width: 500px;
    }
}

.slides-wrapper {
    display: flex; /* Arrange slides horizontally */
    width: 300%; /* 100% per slide * number of slides */
    height: 100%;
    transition: transform 0.8s ease-in-out; /* Smooth transition for slides */
}

.slide-image {
    width: calc(100% / 3); /* Each slide takes 1/3 of the wrapper width */
    height: 50%;
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    display: block; /* Remove extra space below image */
    flex-shrink: 0; /* Prevent images from shrinking */
    border-radius: 23px; /* Apply to individual images */
}

/* Slideshow Navigation Arrows */
.slide-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 10px 23px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    z-index: 3;
}

.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide {
    left: 0;
}

.slide-nav:hover {
    background-color: rgba(119, 255, 0, 0.489);
}

/* Slideshow Dots */
.slide-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--white);
}

/* Updated Media Queries for Mobile-First Approach */
@media (min-width: 992px) {
    .slideshow-container {
        max-width: 500px;
    }
}

/* Remove redundant mobile styles - handled by mobile-first approach above */

/* Features Section */
/* Container for the entire section where features are listed */
.features-section { 
    background-color: #F8F8F8; /* A very light grey or off-white to make cards pop */
    padding: 60px 20px; /* Generous top/bottom padding for the whole section */
    font-family: Arial, sans-serif; /* Use a clean, readable font */
}

/* "FEATURES" label */
.features-section .features-label {
    display: inline-block; /* Allows padding and keeps it to content width */
    background-color: #6CBE45; /* Your existing green, or a slightly brighter one */
    color: white;
    padding: 8px 20px;
    border-radius: 25px; /* More rounded pill shape */
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px; /* Space below the label */
    text-align: center; /* Ensures text is centered if block */
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it a block to center */
    width: fit-content; /* Only as wide as content */
}

/* "Everything You Need to Grow" heading */
.features-section h1 { /* Assuming this is an h1 or h2 */
    font-size: 3em; /* Larger, more impactful */
    color: #333; /* Darker, more prominent color */
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}  
  
/* "Shamba Direct provides a complete solution..." paragraph */
.features-section p.subtitle {
    font-size: 1.1em;
    color: #666; /* Softer color for supporting text */
    text-align: center;
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto 50px auto; /* Center and add space below */
}  
.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Mobile-first responsive grid */
@media (min-width: 576px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
.feature-card {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  transition: all 0.3s ease;
  width: 100%;
  min-height: 200px;
}

@media (min-width: 576px) {
  .feature-card {
    padding: 25px;
  }
}

@media (min-width: 768px) {
  .feature-card {
    padding: 30px;
  }
}

.feature-card:hover {
  background: rgba(22, 163, 74, 0.1);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.2);
  transform: translateY(-5px);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

/* Content within the card */
.feature-card h3 { /* For "Quality Agricultural Inputs", "Doorstep Delivery", etc. */
    font-size: 1.4em; /* Make headings slightly larger and more prominent */
    color: #333; /* Darker color for headings */
    margin-bottom: 10px; /* Space between title and description */
    font-weight: 600; /* Slightly bolder */
    line-height: 1.3;
}

.feature-card p { /* For the descriptive text */
    font-size: 1em; /* Standard readable text size */
    color: #555; /* Softer color for body text */
    line-height: 1.6; /* Good line height for readability */
    margin-bottom: 0; /* Remove default paragraph bottom margin if not needed */
}
/* If you want the "Credit System" card to always span full width and be centered */
.feature-card.credit-system-card { /* Add a specific class to this card in HTML */
    grid-column: 1 / -1; /* Make it span all columns */
    /* If you also want its *content* centered, add: */
    text-align: center;
    align-items: center;
}
/* For tablets and smaller laptops */
@media (max-width: 992px) {
    .features-section h1 {
        font-size: 2.5em;
    }
    .features-section p.subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .cards-container {
        gap: 20px; /* Slightly less gap */
    }
    .feature-card {
        padding: 25px;
    }
    .feature-card h3 {
        font-size: 1.3em;
    }
}

/* For mobile phones */
@media (max-width: 768px) {
    .features-section {
        padding: 40px 15px; /* Less padding on very small screens */
    }
    .features-section .features-label {
        margin-bottom: 15px;
        font-size: 0.8em;
        padding: 6px 15px;
    }
    .features-section h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .features-section p.subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .cards-container {
        grid-template-columns: 1fr; /* Stack cards vertically on small screens */
        gap: 15px;
    }
    .feature-card {
        padding: 20px;
    }
    .feature-card h3 {
        font-size: 1.2em;
    }
    .feature-card p {
        font-size: 0.9em;
    }
}
/* How It Works Section */
/* --- Overall Section Styling --- */
/* --- Overall Section Styling --- */
.how-it-works-section {
    background-color: #F8F9FB; /* Light background for minimalist look */
    padding: 80px 20px; /* Ample vertical padding */
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Sleek, modern sans-serif */
    text-align: center; /* Center main titles */
    overflow: hidden; /* Ensures nothing overflows the section */
}

.how-it-works-section .process-label {
    display: inline-block;
    background-color: #6CBE45; /* Your brand green */
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.how-it-works-section h2 {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.how-it-works-section .subtitle {
    font-size: 1.1em;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px auto; /* Center and space before steps */
}

/* --- Process Steps Container --- */
.process-steps-container {
    display: flex; /* Arrange steps horizontally */
    justify-content: space-between; /* Distribute steps evenly */
    align-items: flex-start; /* Align steps from the top */
    max-width: 1200px; /* Control max width of the process flow */
    margin: 0 auto;
    position: relative;
    padding-top: 50px; /* **Adjusted: Space for nodes and background numbers** */
    padding-bottom: 50px; /* Space below content */

    /* The magic for the wavy line: SVG background! */
    /* This SVG creates a wavy path. Adjust points for different waves. */
    /* Generated with a path tool and optimized for Base64 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100'%3E%3Cpath fill='none' stroke='%236CBE45' stroke-width='4' stroke-dasharray='10 5' d='M0%2C50 C200%2C10 300%2C90 500%2C50 C700%2C10 800%2C90 1000%2C50'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 90% auto; /* Adjust 90% to cover between nodes */
    background-position: center 0px; /* **Adjusted: Position the wave higher to be central to nodes** */
    min-height: 200px; /* Ensure enough space for the wave and nodes */
    z-index: 1; /* Ensure container is above general page background but below step content */
}

/* --- Individual Process Step --- */
.process-step {
    display: flex;
    flex-direction: column; /* Stack node/number above content */
    align-items: center; /* Center content within each step */
    text-align: center;
    position: relative; /* For positioning number background and node */
    padding: 0 15px; /* Horizontal padding for spacing text from edges */
    flex: 1; /* Allows each step to take equal space */
    z-index: 10; /* **Crucial: Ensure steps content is above the background line and numbers** */
}

/* Faded Background Numbers */
.step-number-bg {
    position: absolute;
    top: -90px; /* **Adjusted: Move number higher to be fully behind the node and above the text.** */
    font-size: 6.5em; /* Large size */
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05); /* Very faded black */
    z-index: -1; /* **Crucial: Behind the node and content** */
    line-height: 1; /* Remove extra line height */
    user-select: none; /* Prevent text selection */
}

/* Process Node (Hexagon-like circle) */
.process-node {
    width: 80px; /* Size of the node */
    height: 80px;
    background-color: white; /* White background for the node */
    border-radius: 50%; /* Circular for simplicity, or use clip-path for hexagon */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* **Adjusted: Reduce space between node and heading to pull up content slightly.** */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 3px solid #E0E0E0; /* Light border */
    position: relative; /* **Needed for z-index context** */
    z-index: 2; /* **Crucial: Ensure node is above the text and the background numbers/line.** */
    top: 0; /* Ensures it starts at its natural position relative to .process-step */
}

/* Node hover effect */
.process-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #6CBE45; /* Green border on hover */
}

/* Icon inside the node */
.process-node i {
    font-size: 2.5em; /* Size of the icon */
    color: #6CBE45; /* Your brand green for icons */
}

/* Step Content (Heading and Paragraph) */
.step-content {
    /* **New: Ensure content is clearly below the node and not overlapping.** */
    padding-top: 0; /* Already accounted for by margin-bottom on process-node */
    position: relative; /* Ensures it respects z-index */
    z-index: 1; /* Below the node, above background elements */
}

.step-content h3 { /* **Adjusted: Reduced font size slightly for better fit.** */
    font-size: 1.2em;
    color: #333;
    margin-bottom: 8px; /* **Adjusted: Reduced margin for tighter text.** */
    font-weight: 600;
}

.step-content p { /* **Adjusted: Reduced font size and max-width for tighter text.** */
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    max-width: 200px; /* Constrain paragraph width for readability */
    margin: 0 auto; /* Center paragraph text */
}

/* Start Ordering Button */
.start-ordering-btn {
    background-color: #6CBE45; /* Your brand green */
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 30px; /* Pill-shaped button */
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 60px; /* Space above button */
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for the button */
}

.start-ordering-btn:hover {
    background-color: #5BA83A; /* Slightly darker green on hover */
    transform: translateY(-2px);
}

.start-ordering-btn:active {
    transform: translateY(1px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .how-it-works-section h2 { font-size: 2.4em; }
    .how-it-works-section .subtitle { font-size: 1em; margin-bottom: 50px; }
    .process-steps-container { padding: 40px 0; }
    .process-node { width: 70px; height: 70px; margin-bottom: 20px; } /* Adjusted */
    .process-node i { font-size: 2.2em; }
    .step-number-bg { font-size: 7em; top: -15px; } /* Adjusted */
    .step-content h3 { font-size: 1.1em; } /* Adjusted */
    .step-content p { font-size: 0.85em; max-width: 180px; } /* Adjusted */
    .start-ordering-btn { padding: 12px 30px; font-size: 0.9em; margin-top: 50px; }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 60px 15px;
        /* Adjusted background for smaller screens when stacked vertically */
        background: #F8F9FB; /* No gradient on mobile if it caused issues */
    }
    .how-it-works-section h2 { font-size: 2em; padding-top: 0; }
    .how-it-works-section .subtitle { font-size: 0.9em; margin-bottom: 40px; }
    .process-steps-container {
        flex-direction: column; /* Stack steps vertically on small screens */
        align-items: center; /* Center horizontally when stacked */
        padding: 0; /* Remove horizontal padding */
        background-image: none; /* **Crucial: Remove wavy line on mobile to prevent distortion** */
        min-height: auto; /* Allow height to adapt */
        gap: 40px; /* Space between stacked steps */
        z-index: 1;
    }
    .process-step {
        flex: none; /* Disable flex growth when stacked */
        width: 100%; /* Take full width */
        max-width: 300px; /* Constrain max width for readability */
        padding: 0; /* Remove horizontal padding */
    }
    .step-number-bg {
        position: static; /* Position normally within flow */
        font-size: 5em; /* Smaller number */
        margin-bottom: 10px; /* Space below number */
        opacity: 0.08; /* Slightly less faded */
        top: auto; /* Reset top positioning */
        left: auto; /* Reset left positioning */
    }
    .process-node {
        width: 60px; height: 60px;
        margin-bottom: 15px; /* Adjusted */
    }
    .process-node i { font-size: 2em; }
    .step-content h3 { font-size: 1.1em; }
    .step-content p { font-size: 0.85em; max-width: 280px; }
    .start-ordering-btn { margin-top: 40px; }
}

@media (max-width: 480px) {
    .how-it-works-section h2 { font-size: 1.8em; }
    .step-number-bg { font-size: 4em; }
    .process-node { width: 50px; height: 50px; }
    .process-node i { font-size: 1.8em; }
    .step-content h3 { font-size: 1em; }
    .step-content p { font-size: 0.8em; }
    .start-ordering-btn { padding: 10px 25px; font-size: 0.9em; }
}

/* Educational Resources Section */
/* --- Overall Section Styling --- */
.knowledge-section {
    background-color: #F8F9FB; /* Light background for clean UI */
    padding: 100px 20px; /* Generous padding */
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    /* Optional: semi-transparent background. Example for a subtle light green tint */
    /* background: linear-gradient(to bottom, rgba(108, 190, 69, 0.03), rgba(108, 190, 69, 0.0) 50%), #F8F9FB; */
}

.knowledge-container {
    display: flex; /* Arrange intro and grid side-by-side */
    gap: 50px; /* Space between the two columns */
    max-width: 1200px; /* Max width for the entire section content */
    margin: 0 auto; /* Center the container */
    align-items: flex-start; /* Align content to the top */
}

/* --- Left Section: Intro Column --- */
.knowledge-intro-col {
    flex: 1; /* Allow this column to grow */
    max-width: 400px; /* Max width for the intro text */
    text-align: left; /* Left align content */
    padding-top: 20px; /* Align with the top of the cards */
}

.knowledge-intro-col .section-label {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: white;
    background-color: #6CBE45; /* Your brand green */
}

.knowledge-intro-col .section-label .section-icon {
    margin-right: 8px; /* Space between icon and text */
}

.knowledge-intro-col .section-title {
    font-size: 3.2em; /* Large, bold title */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #2b3b48; /* Darker text for prominence */
}

.knowledge-intro-col .section-subtitle {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px; /* Space before button */
}

.explore-resources-btn {
    display: inline-flex; /* Allows icon and text to sit together */
    align-items: center;
    background-color: #d9ff00; /* Bright yellow/orange accent for button */
    color: #333; /* Dark text for contrast */
    padding: 15px 30px;
    border-radius: 30px; /* Pill-shaped */
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.explore-resources-btn:hover {
    background-color: #09893a; /* Slightly darker yellow on hover */
    transform: translateY(-2px);
    text-decoration: none;
}

.explore-resources-btn:active {
    transform: translateY(1px);
}

.explore-resources-btn .fas {
    margin-left: 10px; /* Space between text and arrow icon */
    font-size: 0.9em;
    transition: margin-left 0.2s ease; /* Smooth arrow movement */
}

.explore-resources-btn:hover .fas {
    margin-left: 15px; /* Move arrow slightly on hover */
}

/* --- Right Section: Resource Cards Grid --- */
.resource-cards-grid {
    flex: 2; /* Allow this column to take more space */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3-column responsive grid */
    gap: 30px; /* Space between cards */
    padding-top: 20px; /* Align with the title in the left column */
}

.resource-card {
  background: rgba(255, 255, 255, 0.25);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.resource-card:hover {
  background: rgba(22, 163, 74, 0.1);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.2);
  transform: translateY(-5px);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.card-icon-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.resource-icon {
    font-size: 2.2em;
    color: #6CBE45; /* Green for resource icons */
    margin-right: 15px;
}

.card-title {
    font-size: 1.4em; /* Prominent card title */
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.card-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px; /* Space before link */
    flex-grow: 1; /* Allow description to take available space */
}

/* --- Media Queries for Responsiveness --- */

/* Tablet and Smaller Desktops (less than 992px) */
@media (max-width: 992px) {
    .knowledge-container {
        flex-direction: column; /* Stack columns on smaller screens */
        gap: 40px;
        padding: 0 20px;
    }
    
    .knowledge-intro-col {
        max-width: 100%; /* Full width for the intro column */
        text-align: center; /* Center align text */
        padding-top: 0;
    }
    
    .knowledge-intro-col .section-title {
        font-size: 2.5em; /* Scale down title font size */
    }
    
    .knowledge-intro-col .section-subtitle {
        font-size: 1em;
    }
    
    .resource-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust grid for better fit */
        padding-top: 0;
    }
}

/* Mobile Devices (less than 768px) */
@media (max-width: 768px) {
    .knowledge-section {
        padding: 60px 15px; /* Reduce overall padding */
    }
    
    .knowledge-intro-col .section-title {
        font-size: 2em; /* Further scale down title */
    }
    
    .explore-resources-btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    
    .resource-cards-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 20px;
    }
    
    .resource-card {
        padding: 20px; /* Reduce card padding */
    }
}

/* Small Mobile Devices (less than 480px) */
@media (max-width: 480px) {
    .knowledge-section {
        padding: 40px 10px;
    }
    
    .knowledge-intro-col .section-title {
        font-size: 1.8em;
    }
    
    .knowledge-intro-col .section-subtitle {
        font-size: 0.9em;
    }
    
    .explore-resources-btn {
        padding: 10px 20px;
        font-size: 0.85em;
    }

    .resource-card {
        padding: 15px;
    }

    .card-icon-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .resource-icon {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    
    .card-title {
        font-size: 1em;
    }
    
    .card-description {
        font-size: 0.8em;
    }
}
/* Dynamic Elements - Animations */

/* Staggered Load Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* Parallax Effect for Hero Background */
.hero-section::before {
    transform: translateZ(-10px) scale(2);
    /* This needs JavaScript to truly become parallax, using scroll events */
    /* Add a class like 'is-parallax' that JavaScript will toggle/adjust */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* Or implement a mobile menu toggle */
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .stats-social-proof .stat-text {
        font-size: 20px;
    }

    .value-prop-grid,
    .how-it-works-steps {
        grid-template-columns: 1fr;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
}





/* Example for text elements */
h1, h2, h3, h4, h5, h6 {
    color: #222;
}

p, li, span {
    color: #444;
}

a {
    color: #007bff; /* Blue links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Example for cards, forms, or content containers */
.card, .form-container, .content-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Input fields and buttons */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button, .btn-primary {
    background-color: #4CAF50; /* Shamba Direct Green */
    color: white;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
button:hover, .btn-primary:hover {
    background-color: #45a049;
}




/* Marketplace System Styles */
:root {
    --primary-green: #4CAF50;
    --primary-green-dark: #45a049;
    --text-dark: #2b3b48;
    --text-medium: #555;
    --text-light: #888;
    --bg-light: #F8F9FB;
    --border-light: #e0e0e0;
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s ease;
}

/* Marketplace Page Styles */
.crops-marketplace {
    margin-top: 120px;
    margin-bottom: 50px;
}

.marketplace-header {
    text-align: center;
    margin-bottom: 50px;
}

.marketplace-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.marketplace-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filter Section */
.search-filter {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Marketplace Grid */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Crop Cards */
.crop-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.crop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
    border-color: var(--primary-green);
}

.crop-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.crop-card-body {
    padding: 20px;
}

.crop-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.crop-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.crop-card-desc {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-height: 60px;
    overflow: hidden;
}

.crop-card-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.crop-card-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    color: white;
}

.price-badge {
    background: linear-gradient(135deg, var(--primary-green), #22c55e);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Product Page Styles */
.product-page {
    margin-top: 120px;
    margin-bottom: 50px;
}

.product-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.product-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-info {
    padding: 40px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--primary-green);
    margin-right: 10px;
}

.order-btn {
    background: linear-gradient(135deg, var(--primary-green), #22c55e);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    color: white;
}

/* Similar Products */
.similar-products {
    background: #f8f9fa;
    padding: 50px 0;
    border-radius: 20px;
}

.similar-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.similar-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.similar-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.similar-card-body {
    padding: 20px;
}

.similar-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.similar-card .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Order Page Styles */
.order-page {
    margin-top: 120px;
    margin-bottom: 50px;
    min-height: 70vh;
}

.order-container {
    max-width: 800px;
    margin: 0 auto;
}

.order-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.order-header {
    background: linear-gradient(135deg, var(--primary-green), #22c55e);
    color: white;
    padding: 30px;
    text-align: center;
}

.order-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.order-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.product-summary {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-details p {
    color: var(--text-medium);
    margin-bottom: 8px;
}

.price-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 15px;
}

.delivery-options {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.delivery-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.delivery-title i {
    color: var(--primary-green);
    margin-right: 10px;
}

.delivery-option {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    background: #e9ecef;
    border-color: var(--primary-green);
}

.delivery-option.selected {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

.delivery-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.option-details p {
    color: var(--text-medium);
    margin: 0;
}

.delivery-fee {
    font-weight: 600;
    color: var(--primary-green);
}

.order-summary {
    padding: 30px;
    background: #f8f9fa;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.summary-title i {
    color: var(--primary-green);
    margin-right: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid var(--primary-green);
}

.complete-order-btn {
    background: linear-gradient(135deg, var(--primary-green), #22c55e);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.complete-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    color: white;
}

.complete-order-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-medium);
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive Design for Marketplace */
@media (max-width: 768px) {
    .crops-marketplace,
    .product-page,
    .order-page {
        margin-top: 100px;
    }
    
    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-info {
        padding: 25px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-price {
        font-size: 1.8rem;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image {
        width: 100px;
        height: 100px;
    }
    
    .option-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .marketplace-header h1 {
        font-size: 2rem;
    }
    
    .crop-card-body {
        padding: 15px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .order-header,
    .product-summary,
    .delivery-options,
    .order-summary {
        padding: 20px;
    }
}
