
.agri-section {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('../immmmage/sos1.jpeg') no-repeat center center fixed;
    background-size: cover;
}

.card-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
}

.card {
    position: relative;
    width: 22%;
    height: 10rem;
    margin: 10px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-decoration: none; /* Ensure links have no underline */
}

.card img.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uniq-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent */
    /* opacity: 0; */
    transition: opacity 0.3s ease;
    filter: brightness(0.5);
}

.card:hover .uniq-overlay{
    opacity: 1;
}

.card-text {
    position: absolute;
    bottom: 10px;
    left: 15px;
    color: blanchedalmond;
    display: flex;
    justify-items: center;
    align-items: center;
}

.card-text .icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #2128BF;
}

.card-text:last-child {
    margin-bottom: 60px;
}

.card-text p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
}

.special-card {
    background-color: #fbe7ce;
    border: 2px solid #f89c6b;
}

.special-card .card-text {
    color: #000;
}

.card:hover {
    transform: scale(1.05);
}

/* Small screens */
@media (max-width: 600px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}