/* ================================
   Services Section
=================================*/

.services {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.services-title h2 {
    font-size: 2.2rem;
    color: #363636;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Container */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    align-items: stretch; /* ensures equal height */
}

/* Service card */
.service-block {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    flex: 1 1 300px;   /* flexible sizing with min width */
    max-width: 320px;  /* keeps cards neat */
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* stack children vertically */
}

/* Equal height fix: push paragraph down */
.service-block ul {
    margin-bottom: auto; /* allows paragraph to align bottom */
}

.service-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.15);
}

/* Images */
.service-block img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Headings */
.service-block h2 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Service links styled as full-width buttons */
.service-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.service-block ul li {
    margin: 8px 0;
}

.service-block ul li a {
    display: block;                /* full width */
    width: 100%;                   /* stretch to card width */
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #f0fdf0;     /* light green tint */
    color: #006400;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect */
.service-block ul li a:hover {
    background-color: #006400;
    color: #fff;
}



/* Paragraphs */
.service-block p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-top: auto; /* keeps paragraph at bottom */
}

/* ================================
   Responsive Adjustments
=================================*/

@media (max-width: 992px) {
    .services-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 30px 15px;
    }

    .services-container {
        gap: 20px;
    }

    .service-block {
        max-width: 100%;
    }

    .service-block img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .services-title h2 {
        font-size: 1.6rem;
    }

    .service-block h2 {
        font-size: 1.2rem;
    }

    .service-block p {
        font-size: 0.9rem;
    }
}


/* Agricultural Services Intro */
.services-intro {
    background-color: #f9f9f9; /* Light background to keep it clean */
    padding: 50px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services-intro h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 1.1rem;
    color: #4f4f4f;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 15px; /* Keeps it centred and well-spaced */
}

.services-intro strong {
    color: #2c3e50; /* A slightly darker shade to make it stand out */
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-intro {
        padding: 40px 15px;
    }

    .services-intro h1 {
        font-size: 2rem;
    }

    .services-intro p {
        font-size: 1rem;
    }
}


.service-img-container {
    background-color: #f7f7f7;
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.service-img-div {
    width: 30vw;
    height: 50vh;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.service-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

  

.service-img:hover {
        transform: scale(1.05); /* Slight zoom */
        opacity: 0.8; /* Dims the image */
        cursor: pointer;
}



.service-img-div:hover::after {
        opacity: 1; /* Icon appears on hover */
}

