.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: url('images/fields.jpg') no-repeat center/cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta .btn-primary {
    background: #34C759;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 1rem;
    transition: background 0.3s;
}

.hero-cta .btn-primary:hover {
    background: #28A745;
}

.hero-cta .btn-secondary {
    border: 2px solid #E8ECEF;
    padding: 1rem 2rem;
    color: #E8ECEF;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.hero-cta .btn-secondary:hover {
    background: #E8ECEF;
    color: #1F2A44;
}

.featured {
    padding: 4rem 2rem;
    margin-top: 0; /* Ensure no extra spacing above */
}

.featured h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel-container {
    max-width: 960px; /* 3 cards (300px) + 2rem gap (60px total) */
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative; /* Keep it in flow */
}

.carousel-wrapper {
    width: 900px; /* 3 cards * 300px */
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
}

.carousel .card {
    opacity: 1; /* Override base.css opacity: 0 */
}

.carousel-arrow {
    background: #34C759;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background: #28A745;
}

.left-arrow {
    margin-right: 1rem;
}

.right-arrow {
    margin-left: 1rem;
}

.why-agriflow {
    padding: 4rem 2rem;
    text-align: center;
}

.why-agriflow h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    padding: 1.5rem;
    background: #2A3A5A;
    border-radius: 10px;
}

.why-item .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: #34C759;
}

.why-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}